How to deploy SQL Server Compact Edition 4.0?

i’ve created the solution. SQL Server Compact Edition is comprised of 7 dlls: sqlceme40.dll The undocumented, native, flat API library (The .net System.Data.SqlServerCe.dll assembly is a wrapper around this dll) sqlceca40.dll A COM dll that implements Engine, Replication, Error and a few other COM objects sqlceoledb40.dll A COM dll that implements an OLEdb provider for … Read more

batch file Copy files with certain extensions from multiple directories into one directory

In a batch file solution for /R c:\source %%f in (*.xml) do copy %%f x:\destination\ The code works as such; for each file for in directory c:\source and subdirectories /R that match pattern (\*.xml) put the file name in variable %%f, then for each file do copy file copy %%f to destination x:\\destination\\ Just tested … Read more

Copy entire directory to output folder maintaining the folder structure?

I just added this to my *.csproj file (right click Edit Project File) <ItemGroup> <Content Include=”MYCUSTOMFOLDER\**”> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Content> </ItemGroup> I think for this the directory needs to be on same hierarchy level as *.csproj file or bellow that.

/exclude in xcopy just for a file type

The /EXCLUDE: argument expects a file containing a list of excluded files. So create a file called excludedfileslist.txt containing: .cs\ Then a command like this: xcopy /r /d /i /s /y /exclude:excludedfileslist.txt C:\dev\apan C:\web\apan Alternatively you could use Robocopy, but would require installing / copying a robocopy.exe to the machines. Update An anonymous comment edit … Read more

XCOPY switch to create specified directory if it doesn’t exist?

Answer to use “/I” is working but with little trick – in target you must end with character \ to tell xcopy that target is directory and not file! Example: xcopy “$(TargetDir)$(TargetName).dll” “$(SolutionDir)_DropFolder” /F /R /Y /I does not work and return code 2, but this one: xcopy “$(TargetDir)$(TargetName).dll” “$(SolutionDir)_DropFolder\” /F /R /Y /I Command … Read more