when I tried to use
C:\CSW>xcopy a:\nul ,
it is giving
Invalid drive specification
0 files copied.
Even
C:\CSW>xcopy c:\nul
doesnt work and give the same error.Please can you explain what the problem is. I will be so much greatful to you. My operating system is Windows XP SP2
Page 1 of 1
Detecting a floppy drive in windowsxp using xcopy batch programming
#2
Posted 02 June 2005 - 02:35 PM
Are you trying to copy all files in that directory? What exactly are you trying to do?
Here's some examples of uses for xcopy:
copy all files
xcopy *.* x:\dir
or a file
xcopy file.txt x:\dir
or a group of file with the same extension
xcopy *.txt x:\dir
or all files and subdirectories(except empty ones)
xcopy *.* x:\dir /s
or all files and subdirectories(including empty dirs)
xcopy *.* x:\dir /s /e
xcopy /? will give you more options.
Here's some examples of uses for xcopy:
copy all files
xcopy *.* x:\dir
or a file
xcopy file.txt x:\dir
or a group of file with the same extension
xcopy *.txt x:\dir
or all files and subdirectories(except empty ones)
xcopy *.* x:\dir /s
or all files and subdirectories(including empty dirs)
xcopy *.* x:\dir /s /e
xcopy /? will give you more options.
JC
#3
Posted 02 June 2005 - 02:37 PM
yeah i know these thing..as i already explained i am trying to detect whether a floppy is present in present in the floppy drive or not
#4
Posted 02 June 2005 - 02:43 PM
Good one...could you not do this?
dir a:\ >>c:\test.txt
dir a:\ >>c:\test.txt
JC
#5
Posted 02 June 2005 - 02:47 PM
yes we can when the floppy is present in the driver but we cant when it isnt because for dir it opens a gui based application saying that there isnt a floppy in the drive
#6
Posted 02 June 2005 - 02:51 PM
yeah buddy got the answer..using dir is working..thanks..i checked it for copy and xcopy ..seems i forgot to check it for dir:D
Share this topic:
Page 1 of 1

Help

Back to top









