Go Back   Tech Support Forum > Microsoft Support > Windows XP Support

User Tag List

XP DOS - checking drive existence

This is a discussion on XP DOS - checking drive existence within the Windows XP Support forums, part of the Tech Support Forum category. Gudday all For various reasons I need to check the presence or absence of drives on my XP machine at


Closed Thread
 
Thread Tools Search this Thread
Old 05-03-2008, 07:33 AM   #1
Registered Member
 
Tigers!'s Avatar
 
Join Date: Apr 2006
Location: Melbourne, Australia
Posts: 99
OS: Win 7 with Office 2007



Gudday all
For various reasons I need to check the presence or absence of drives on my XP machine at any given time using a DOS batch file.
If the device is physically there it is ok but I have a removable drive noted in drive position G: (yet it is not present) that constantly throws up the same error and halts the batch file. See attachment.
I would like to be able to ignore this error (and others like it) and continue checking for other drive's existence.
Has anyone any experience in coding for such a task?
Attached Thumbnails
Click image for larger version

Name:	drive error message.jpg
Views:	35
Size:	11.6 KB
ID:	27429  
Tigers! is offline  
Sponsored Links
Advertisement
 
Old 05-03-2008, 07:59 AM   #2
 
Join Date: Apr 2008
Posts: 819
OS:



Tigers!,

Check out these sites:

https://support.microsoft.com/kb/65994

https://www.computing.net/answers/pro...le-/16096.html

- John
johnhook is offline  
Old 05-04-2008, 01:28 AM   #3
Registered Member
 
Tigers!'s Avatar
 
Join Date: Apr 2006
Location: Melbourne, Australia
Posts: 99
OS: Win 7 with Office 2007



Thanks mate.
I'll have a Captain Cook.
Tigers! is offline  
Sponsored Links
Advertisement
 
Old 05-04-2008, 01:52 AM   #4
Registered Member
 
Tigers!'s Avatar
 
Join Date: Apr 2006
Location: Melbourne, Australia
Posts: 99
OS: Win 7 with Office 2007



Actually on further thought I was wondering if I am able to test the error message that I am being given.
If my reading of it is correct the code 'c0000013' is actually an error code. I am seeing it as the pop-up alert.
Is it possible to have it read by the batch file and used? When it appear a sone of the errorlevel codes or something else?
Tigers! is offline  
Old 05-04-2008, 07:21 PM   #5
 
Join Date: Apr 2008
Posts: 819
OS:



Tigers!,

Does your batch file have the 'exit' command where it needs to terminate (usually at the end)? Fixing this message may be as simple as adding 'exit' at the end.

I'm looking up that code and it seems to have something to do with a missing disk error. Does your batch file reference a drive letter (CD, DVD Diskette, Flash Drive, etc.) that is being removed before the batch file has finished. Is it possible that you've hard-coded a drive letter/path in the file that no longer exists (media not inserted, drive letter changed)?

Does your batch file switch to another drive, i.e. the command "D:" or "A:" (etc.) in a line by itself? Again doing this if that drive is not available will cause the error you describe.

If not, where is that error code "c0000013" coming from (DOS, Windows, application, etc.)?

Do you have good anti-virus/malware software installed and running on your PC. It's a good idea to run a FULL scan as this problem might be related to an infection:

Check out:

https://www.techsupportforum.com/secu...this-log-help/

Hope this helps,

- John
johnhook is offline  
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is on
Smilies are on
[IMG] code is on
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Post a Question


» Site Navigation
 > FAQ
  > 10.0.0.2
Powered by vBadvanced CMPS v3.2.3


All times are GMT -7. The time now is 07:21 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
vBulletin Security provided by vBSecurity v2.2.2 (Pro) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.1.0 (Pro) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.
Copyright 2001 - 2018, Tech Support Forum

Windows 10 - Windows 7 - Windows XP - Windows Vista - Trojan Removal - Spyware Removal - Virus Removal - Networking - Security - Top Web Hosts