CMD.exe not working always

  • Thread starter Thread starter DEE
  • Start date Start date
D

DEE

Hi There ,

i am using a batach file to copy some files , this is a simple copy
operation extact command is below

COPY 1.txt "C:\Program Files\myfolder" /Y

this works most of the time . but in one particular machine it fails
to recognise the spaces . it while copying it just reads till the
first space (i,e, C:\Program ).

is there any settings/permision ,which i need to look int to.

i am totaly snaped with this behaviour . any help/comment would be
appreciated.

Thanks in Advance
Deepak
 
DEE said:
Hi There ,

i am using a batach file to copy some files , this is a simple copy
operation extact command is below

COPY 1.txt "C:\Program Files\myfolder" /Y

this works most of the time . but in one particular machine it fails
to recognise the spaces . it while copying it just reads till the
first space (i,e, C:\Program ).

is there any settings/permision ,which i need to look int to.

i am totaly snaped with this behaviour . any help/comment would be
appreciated.

Thanks in Advance
Deepak

That looks like it sould work; it's formatted perfectly. I'm not aware
of any system settings that would affect it.

Try asking the question over on the alt.msdos.batch.nt group on
any server that carries the alt.* heirarchy. There are some real XP
batch experts over there and if they don't know, I'd be pretty
surprised.

When you post, give the exact results of when it fails to run. Exact
error message, etc.. That might have helped you here, too; there are
any number of ways for things to fail.

Twayne`
 
DEE said:
Hi There ,

i am using a batach file to copy some files , this is a simple copy
operation extact command is below

COPY 1.txt "C:\Program Files\myfolder" /Y

this works most of the time . but in one particular machine it fails
to recognise the spaces . it while copying it just reads till the
first space (i,e, C:\Program ).

is there any settings/permision ,which i need to look int to.

i am totaly snaped with this behaviour . any help/comment would be
appreciated.

Thanks in Advance
Deepak

The location of 1.txt is not specified. You could add the lines
c:
cd \
copy 1.txt ...
 
Back
Top