English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hello,
Im trying to write a batch file to copy files from a Network Drive to a Pocket PC.
When i run it, it says 'R:\GOLD' is not recognized as an internal or external command, operable program or batch file.

What have i done wrong - i've pasted the text from the batch file below.

Thanks !


REM: DO NOT EXECUTE UNTIL ACTIVESYNC IS CONNECTED

R:\GOLD CUSTOMER SOFTWARE\CECOPY.exe "R:\GOLD CUSTOMER SOFTWARE\TNT UK LTD\MC9094\UK000281-015 (Sterling)\MC9094 Universe 2.1.0.38\Universe_2.1.0.38\UpdateRegMergeSymbol.reg" dev:\application\UpdateRegMergeSymbol.reg
PAUSE

REM: REMOVE TERMINAL FROM THE CRADLEcefile|path>

2007-03-29 23:21:59 · 4 answers · asked by Rick_280680 1 in Computers & Internet Programming & Design

For some reason it didnt show all the text ...

REM: DO NOT EXECUTE UNTIL ACTIVESYNC IS CONNECTED

R:\GOLD CUSTOMER SOFTWARE\CECOPY.exe "R:\GOLD CUSTOMER SOFTWARE\TNT UK LTD\MC9094\UK000281-015 (Sterling)\MC9094 Universe 2.1.0.38\Universe_2.1.0.38\UpdateRegMergeSymbol.reg" dev:\application\UpdateRegMergeSymbol.reg
PAUSE

REM: REMOVE TERMINAL FROM THE CRADLEcefile|path>

2007-03-29 23:23:18 · update #1

4 answers

Very simply, you need to bracket your command with quotes.

"R:\GOLD CUSTOMER SOFTWARE\CECOPY.exe"

By default, the DOS commandline treats spaces as a separation between command and switches. So the system thinks that the command you are calling is "R:\Gold" and the rest of the stuff, like 'customer' 'software', is switches.

So, put quotes around the whole cecopy.exe path/command and it will treat that as one command.

2007-03-31 00:28:36 · answer #1 · answered by Kevin 7 · 3 0

If you are running Windows, select "Run" from your START menu. Type cmd.exe and press enter

In the DOS prompt, go to main directory of your R: drive.
Type
dir /x

You will see there is another name for "GOLD CUSTOMER SOFTWARE". Should be something like "GOLDCU~1". Use this 8 character directory name rather than long filename in your batch file.

2007-03-29 23:34:39 · answer #2 · answered by Anonymous · 0 0

Try running it in cmd not command

because cmd is window based
command is kept for compatibility. It is just like dos. it uses 8.3 format. i.e the length of the file should be 8 and the extension should have a length less than or equal to 3.

When the name of the file is greater than 8 characters it converts them to 8.3 format by truncating the characters.

eg. if the file name is gopiisafool.txt
then the name in 8.3 format is gopiis~1.txt

2007-03-30 01:26:44 · answer #3 · answered by Gopinath M 3 · 0 1

Before using the batch file, open the link to R: in My Computer

2007-03-30 03:14:51 · answer #4 · answered by ROY L 6 · 0 1

fedest.com, questions and answers