PDA

View Full Version : If c:\mdac exists run this condition


msmith
04-14-2003, 05:00 PM
Hello,

I would like to find a way that I can check to see if a drive and directory exists,
if so run this command. If it does not run this command.

Because I would like to delete a directory if it is on the users system drive c.

So

In human text

If c:=mdac or not

Run this command

If d:=mdac or not

Run this command

Because if I try and run a command that looks for drive d: and it is not partitioned, then I will receive an error message. So I would like to see if I can get ams, to tell if a drive letter D: or C: exists.