Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Detecting a floppy drive in windowsxp using xcopy


  • Please log in to reply
5 replies to this topic

#1 Devil'sAngel

Devil'sAngel

  • Members
  • 6 posts
  • OFFLINE
  •  
  • Local time:02:37 PM

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

BC AdBot (Login to Remove)

 


#2 Joshuacat

Joshuacat

    01001010 01000011


  • Members
  • 1,950 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Ontario, Canada
  • Local time:03:37 PM

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 Devil'sAngel

Devil'sAngel
  • Topic Starter

  • Members
  • 6 posts
  • OFFLINE
  •  
  • Local time:02:37 PM

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 Joshuacat

Joshuacat

    01001010 01000011


  • Members
  • 1,950 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Ontario, Canada
  • Local time:03:37 PM

Posted 02 June 2005 - 02:43 PM

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

#5 Devil'sAngel

Devil'sAngel
  • Topic Starter

  • Members
  • 6 posts
  • OFFLINE
  •  
  • Local time:02:37 PM

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 Devil'sAngel

Devil'sAngel
  • Topic Starter

  • Members
  • 6 posts
  • OFFLINE
  •  
  • Local time:02:37 PM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users