Joined: July 21st, 2009, 7:13 pm Posts: 27
|
|
I am trying to run a batch file that creates a shared folder using the "Run" command. It does not execute.
Do I have to convert this to a Comspec command and any ideas what the syntax would be?
Thank you for any assitance you can provide.
IfExist, %AppFolder%\Components\CreateShare.bat
Run, %AppFolder%\Components\CreateShare.bat
;Creates a share
Contents of CreateShare.bat file:
rem Creating Admin directory.
mkdir "C:\IO Agent"
net share IOAgent="C:\IO Agent" /UNLIMITED
echo y | CACLS "C:\IO Agent" /T /E /G Everyone:F
|
|