I have created working AutoUnattend file for windows 10 which has the following command working
cmd /c FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\AppsRoot.txt SETX AppsRoot %i:\ -m
However i want to run this command manually though a .bat file on machines which have not been installed though my autounattend file.
However if i put this command into a .bat it will not execute. (the brackets on the command dont seem to work)
However if i put this command into command prompt directly it will work.
Exact same command one is just manually put into command prompt and one is in a bat file...
Command Running via Bat
Running though bat.png 6.22KB 0 downloads
Command running though CMD
running via cmd.png 218.72KB 0 downloads