Hello I'm trying to figure out on how to Run a file from network, basically it's located from \10.18.xx.xx\installers\install.bat, so yeah It's gonna prompt a username and password when I locate it manually.
What are the codes the I should use in bat file to run the install.bat from specific shared folder by determining on which version of MS outlook the computer has. example: MS Outlook is 32bit version then it's gonna run the install.bat from 32bit folder, and for MS Outlook 64bit version then it's gonna run the install.bat from 64bit folder. TIA!
Sorry for stupid question, I'm new in batch commands.. Computers are using MS Outlook 2013. Anyway I tried to make this and run this bat file from desktop and it closes immediately after running it like nothing happened.
CheckOS
IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)
:64BIT
\\10.18.xx.xx\Shared_Installers\PhishingOutlookPluginPH\64bit\install.bat -u
myuser -p mypass
GOTO END
:32BIT
\\10.18.xx.xx\Shared_Installers\PhishingOutlookPluginPH\32bit\install.bat -u
myuser -p mypass
GOTO END
:END