I'm working on a deployment script and i want to put in a validation part that will look for a D drive and if not found, throw up an message telling them to create one before continuing.
Now I have tried to solve this myself and i know all the commands to pull up all the info on all partitions on a server, but how do you make the script continue only if a certain partition name is active??
I figure i need something like .. (If "d drive found" then continue Else "throw up some kinda error")
Any help would be greatly appreciated.
-Knotz