BleepingComputer.com: Detecting a floppy drive in windowsxp using xcopy

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Detecting a floppy drive in windowsxp using xcopy batch programming

#1 User is offline   Devil'sAngel 

  • New Member
  • Pip
  • Find Topics
  • Group: Members
  • Posts: 6
  • Joined: 02-June 05

Posted 02 June 2005 - 02:10 PM

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

#2 User is offline   Joshuacat 

  • 01001010 01000011
  • PipPipPipPipPipPip
  • Find Topics
  • Group: BC Advisor
  • Posts: 1,950
  • Joined: 01-January 05
  • Gender:Male
  • Location:Ontario, Canada

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.
JC

#3 User is offline   Devil'sAngel 

  • New Member
  • Pip
  • Find Topics
  • Group: Members
  • Posts: 6
  • Joined: 02-June 05

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 User is offline   Joshuacat 

  • 01001010 01000011
  • PipPipPipPipPipPip
  • Find Topics
  • Group: BC Advisor
  • Posts: 1,950
  • Joined: 01-January 05
  • Gender:Male
  • Location:Ontario, Canada

Posted 02 June 2005 - 02:43 PM

Good one...could you not do this?
dir a:\ >>c:\test.txt
JC

#5 User is offline   Devil'sAngel 

  • New Member
  • Pip
  • Find Topics
  • Group: Members
  • Posts: 6
  • Joined: 02-June 05

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 User is offline   Devil'sAngel 

  • New Member
  • Pip
  • Find Topics
  • Group: Members
  • Posts: 6
  • Joined: 02-June 05

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
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users