Computing.Net > Forums > Disk Operating System > Problems running batch file with xcopy command

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.

Problems running batch file with xcopy command

Reply to Message Icon

Name: MRothfuss
Date: February 8, 2001 at 09:04:14 Pacific
Comment:

I am using a batch file in Win95 to back up a folder onto a zip drive. Whenever the batch file runs I receive an "Incorrect DOS Version" error. The batch file is written as follows:

c:
cd\
cd mydocu~1
xcopy *.* e: /s /e /v /y
exit

I believe the problem may be with the xcopy command. Any help would be appreciated.



Sponsored Link
Ads by Google

Response Number 1
Name: World Library
Date: February 8, 2001 at 12:48:06 Pacific
Reply:

Try
cls
@echo off
xcopy C:\mydocu~1\*.* E:\mydocs /s/e/v/y
:end
cls

You should also have a xcopy32.exe in windows\command.

Example xcopy:
cls
@echo off
rem first two back up
rem third restores
xcopy %windir%\*.dat c:\register /h /i /r /y
xcopy %windir%\*.ini c:\register /h /i /r /y
xcopy c:\register %windir% /h /r /y

c:\windows\command\xcopy32 c:\*.* d: /h /c /e /k


0

Response Number 2
Name: Ayexby
Date: February 8, 2001 at 14:23:20 Pacific
Reply:

If you're getting incorrect Dos version error, I would check for old versions of xcopy having gotten accidentally copied onto a directory in your system's path.
Another possibility is that there is a copy of xcopy.exe in the current directory when your batch file operates, since the current directory is always searched before the search path.


0

Sponsored Link
Ads by Google
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 Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Problems running batch file with xcopy command

batch file require variable or exit www.computing.net/answers/dos/batch-file-require-variable-or-exit/13004.html

Need help with AT commands www.computing.net/answers/dos/need-help-with-at-commands/11462.html

batch file with www.computing.net/answers/dos/batch-file-with-/14234.html