I'm creating a menu for deploy images via winpe . Within this one I squeeze some commands and apply them to files that are stored on an external hard drive.
I even managed to make a if exist c:\IMG GOTO
and then proceed with the script , but as the lyrics can vary a lot, script gets immense.
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 hence apply the commands as VAR:\IMG\image.wim
I would like the variable in the case to match the drive letter that contains the IMG folder.