Computing.Net > Forums > Programming > Batch Script Command Help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch Script Command Help

Reply to Message Icon

Name: kil
Date: December 5, 2008 at 14:22:37 Pacific
OS: Windows XP
CPU/Ram: 3.0
Product: Dell / OPTIPLEX
Comment:

I have a folder on a server share that contains a batch script and folders/files which I want users to execute directly from the share. The problem is that the xcopy command fails to copy files in the folder share to the local machine. However, it works fines when the entire folder is copied over to the desktop. Here is the command:

mkdir C:\Windows\Mupdate\updated
xcopy updated C:\Windows\Mupdate\updated



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: December 6, 2008 at 03:38:39 Pacific
Reply:

Thought you run the batch from the shared folder, it executes on the local machine so you have to set the full path of the shared folder to be copied in the xcopy command, e.g.

xcopy H:\updated C:\Windows\Mupdate\updated

and the MD command may be avoided as xcopy creates by itself he missing destination folder (add the /I switch for safety).


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch Script Command Help

Batch Scripting Command line Login www.computing.net/answers/programming/batch-scripting-command-line-login/13627.html

Batch File Commands (HELP PLZ!) # 2 www.computing.net/answers/programming/batch-file-commands-help-plz-2/16085.html

Batch file commands help ! www.computing.net/answers/programming/batch-file-commands-help-/16201.html