XCOPY from current directory

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

This is probably a simple question, but I cannot remember the syntax, if I
wanted to copy a file from the folder that batch file is running from it has
a syntax similar to

xcopy \.\file.txt c:\DestinationFolder\

I cannot remember the current folder syntax and unable to find a reference
on the web. Using XP Pro SP2
 
Neil said:
This is probably a simple question, but I cannot remember the
syntax, if I wanted to copy a file from the folder that batch file
is running from it has a syntax similar to

xcopy \.\file.txt c:\DestinationFolder\

I cannot remember the current folder syntax and unable to find a
reference on the web. Using XP Pro SP2

..\

or just the filename.

(ie: xcopy .\file.ext "c:\temp directory\with\long folder\name\")
 
I had already tried that and it didn't work, maybe worth mentioning that this
is run from a logon script.
 
I also get this wierd behavior copying from a FAT32 partition to a NTFS
partition
Also I have to use < D.txt because the /i switch doesn't work either.
 
Back
Top