4
I’m creating a menu for deploy imaging via winpe. Inside this I run some commands and apply to files that are stored on an external hard drive.
I even managed to make one if exist c:\IMG GOTO
and continue with the script, but as the letters may vary greatly, the script gets a lot.
Is there any way to assign a value to a variable through a condition, something like:
If exist C:\IMG então VAR=C
And then apply the commands as being VAR:\IMG\image.wim
I would like the variable in case it matches the drive letter containing the folder IMG.
You want to go through all the drives and check if there is IMG folder at the root?
– David