WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: tbaker on October 05, 2015, 08:16:06 AM

Title: DiskExist function fails lately.
Post by: tbaker on October 05, 2015, 08:16:06 AM
I have numerous scripts that check for the existence of a drive in order to alert the user that he is either logged on incorrectly, or no drive mapping exists for the necessary files.
My scripts repeatedly return Drive Not Mapped, even though I have the necessary media mounted. Is there another method to check for the existence or non-existence of a mapped drive?
Title: Re: DiskExist function fails lately.
Post by: td on October 05, 2015, 08:23:03 AM
Rather than look for another method, perhaps you need to consider why DiskExist is not finding your DOS device.  For example, are your scripts running a different version of Windows?  Or have UAC settings changed?  Or are different users using your script?
Title: Re: DiskExist function fails lately.
Post by: tbaker on October 05, 2015, 08:26:22 AM
When I originally wrote the scripts, we were on Windows XP. Now that we're fully on Windows 7, the scripts fail.
Should I recompile with the 64 bit compiler?
Title: Re: DiskExist function fails lately.
Post by: tbaker on October 05, 2015, 08:32:19 AM
I just tried the WILX extender to test for drives ready, and the drive I know is mapped does not show in the display of non-removable drives ready.
Are network drives considered removable?
Title: Re: DiskExist function fails lately.
Post by: td on October 05, 2015, 09:38:26 AM
Please read the following Tech Database article:

http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/UAC+Mapped~Drives~Issue~with~UAC.txt (http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/UAC+Mapped~Drives~Issue~with~UAC.txt)