xcopy

Is there a way to do an "xcopy deployment" of a JSP?

One of the things that's neat about the IIS / ASP.NET environment is the ability to do an "xcopy deployment" - you can literally just drop a stack of .aspx pages in a web-shared directory, and ISS will figure out how to show them to the web. Is there a way to do something similar with JSPs? The exact use case in question is this: we ha...

Dynamically loading assemblies and their dependents using XCOPY deployment

Hi, I have an application loader that dynamically loads applications. An application is an assembly with all of its dependents in a single folder. Using XCOPY deployment I can add/remove applications by copying/deleting a folder. To facilitate standard .NET assembly binding I copy the application folders under the bin of the loader. I s...

Private assemblies under sub-folder cannot load dependencies

Our application dynamically loads a set of private assemblies that each reside under their own sub-directory. They each have their own dependencies which are also in that same sub-directory. Each assembly is strongly named and the dependencies are the same library, but different versions. MyApp |-> Folder1\ | |->PrivateAssembly...

Using xcopy in a batch file with %programfiles%

I'm trying to use a batch file to help setup a build project. As part of that process I need to copy a lot of files from a temporary directory: %temp%\wcu to a new directory in the %programfiles% directory. I am using the following command: xcopy %temp%\wcu\dotnetframework\*.* %programfiles%\"Microsoft SDKs\Windows\v6.0A\Bootstrapper\P...

Visual Studio 2008 on an External Hard Drive?

My laptop had an install error with Vista Ultimate and now it does not let me run Visual Studio. I was able to install Visual Studio 2008 on my HP TouchSmart without a problem and now I use it on there. I want to be able to travel though. So I was wondering if I take the folder in which Visual Studio was installed and put it on my extern...

XCOPY to remote server

In order to improve the deployment / build process of my ASP.NET app, I would like to make a .bat that builds the current solution in release mode xcopy the files to a remote server Creating a release build via command line is easy. But how can I xcopy the files to the remote server? I think I have to map the remote destination t...

Batch File XCopy Command

I have a batch file which loops through a content of a text file and copies a specific file using xcopy command. here's the snippet. for /f %%a in (FilesToCopy.txt) do ( xcopy ..\..\Common\%%a Common\%%a /i /d /c /v /s /y /f xcopy Common\%%a ..\..\Common\%%a /i /d /C /v /s /y /f ) %%a contains values like Images\image1.jpg Images\i...

Using xcopy in VBScript

This is a follow-up to my previous questions (Copy Update Create VBScript and File Folder copy). So far I have the following script to copy files using xcopy: Set objFSO = CreateObject("Scripting.FileSystemObject") Set wshShell = WScript.CreateObject("WScript.Shell") strUserName = wshShell.ExpandEnvironmentStrings("%USERNAME%") ' Disco...

Xcopy "exited with code 9009"

I am getting the following error, which I don't understand: Error 1 The command "xcopy "D:\Users\johndoe\Documents\Visual Studio 2008\Projects\MyProject\MyProject.Modules.Ribbon\bin\Debug\MyProject.Modules.Ribbon.dll" "D:\Users\johndoe\Documents\Visual Studio 2008\Projects\MyProject\MyProject\bin\Debug\Modules\" /Y" exited with c...

Does xcopy pause untill copying is complete?

Hello, For an C# console app like this is it better to use xcopy or robocopy? Also, Does xcopy pause until copying is complete? // copy web project to temp Process proc = new Process(); proc.StartInfo.UseShellExecute = true; proc.StartInfo.FileName = @"C:\WINDOWS\system32\xcopy.exe"; //pro...

xcopy fails to copy files when batch file is executed as seperate process

Hi, i have this batch file - myCustom.bat which has following code in it - set dest_server=\\myRemoteSrv\Builds set dest_build_loc=%dest_server%\%2%\ echo %dest_build_loc% >> buildLocLog.txt echo Copying %1\myTest.zip %dest_build_loc% >> buildLocLog.txt xcopy %1\myTest.zip %dest_build_loc% /D /F >> xcopyOutputLog.txt ...

Problem copying files through xcopy using VBScript

I am using VBScript to copy files using xcopy. The problem is that the folder path has to be entered by the user. Assuming I put that path in a variable, say h, how do I use this variable in the xcopy command? Here is the code I tried: Dim WshShell, oExec, g, h h = "D:\newfolder" g = "xcopy $h D:\y\ /E" Set WshShell = CreateObject("WS...

saving multiple files through xcopy

i want to copy multiple files at once through xcopy. is it possible. i mean something like: xcopy file1+file2+file3 destinationfolder any help is appreciated :) ...

xcopy failing within TFSbuild

I am using TFS2008 and within my TFSBuild.proj file I have a target that call xcopy to copy the build to the production website location for automation. However I am receiving the following error when running the build: Task "Exec" Command: xcopy "\\test\TFSBuilds\Online System V2 Build to NETPUB_20100430.2\Debug\_PublishedWebsites\IPA...

Comments or remarks in an xcopy exclude file

I know how xcopy works, but is it possible to add comments to your exclude files? Something like this: .pdb .xml .config Some.dll /* excluded because ... */ ...

Copy operation fails when running executable using shortcut.

I've coded a C# executable that uses xcopy (cmd.exe /Q /D /C xcopy "C:\_Depot\Tools\CAD\2009" "C:\Apps\CAD 2009" /E /K /R /Y) to duplicate some files. If I run the .exe by double-clicking it, the xcopy operation works every time. If I run the .exe by double-clicking a shortcut to the .exe, the xcopy works only if the shortcut is in the...

Moving and renaming files, keeping extension but include sub directories in batch file

Forgive me if this is nor the place to ask these questions, I am new to batch and scripts and a bit new to these kind of posts... I have a folder that will receive files and folders, I want to run a script that looks at the directory and renames all files in each subfolder numerically, and moves them if possible. For example I have s...

xcopy directories and subdirectories recursively and filter only filenames by extension

Here is what i have for now: xcopy "c:\projects\SampleProject" "c:\temp\copytest" /E /H /EXCLUDE:elist.txt It does all the job i need except filtering filenames by extensions. For example: copy all *.exe files from c:\temp\copytest and subdirectories. How to do that? ...

xcopy file, rename, suppress "Does xxx specify a file name..." message

This seems pretty simple and maybe I'm just overlooking the proper flag, but how would I, in one command, copy a file from one directory to another and rename it in the destination directory? Here's my command: if exist "bin\development\whee.config.example" if not exist "TestConnectionExternal\bin\Debug\whee.config" xcopy "bin\de...

How to use xcopy to copy a file into a non existing directory?

As a part of an automated script, I am trying to do achieve something like this in windows command prompt: xcopy /I /Y resources\xyz\pqrs.txt %TEMP%\resources\xyz\pqrs.txt.bak In %TEMP%, there is no resources directory. This is the interactive output, that I get: Does C:\Users\username\AppData\Local\Temp\resources\xyz\pqrs.txt.bak ...