Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Continue script ONLY if a D drive is found???

$
0
0

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



Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>