I need help with simple vb script, which is responsible for:
- Check whether one of two possible locations are set:
C:\Program Files (x86)\GIMP-2.0\bin\gimp-console-2.6.exe
C:\Program Files\GIMP-2.0\bin\ gimp-console-2.6.exe
If the script finds the file, and must be stopped. If the file is not found, so as to:
- From the server, copy the executable file ("\\S3\i$\Gimp\gimp-June 2 11-i686-setup-1.exe
") to a local temporary folder - ExpandEnvironmentStrings ("%Temp%")
- Run the exe file copied using the command:
runas /user:mydomain@user /mypassword %TMP%\gimp-June 2 11-i686-setup-1.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART
- Finally, after installing the script delete the exe file from the Windows temporary folder.
Thank you in advance for any help.