I'm simply trying to get File.Run to work no matter where the CD image is... Could be on you hard drive, could be on a network share... What I find is my code works on a local drive, but not when the AutoPlay is started from a UNC share... My code:
sLaunchFolder = Folder.GetCurrent();
sInstallFolder = sLaunchFolder.."\\XMSetup\\";
sInstallExe = sInstallFolder.."setup.exe";
Dialog.Message(sInstallFolder, sInstallExe);
File.Run(sInstallExe, "", sInstallFolder, SW_SHOWNORMAL);
The dialog contains the UNC path as expected but the setup does not run. Any help here would be fantastic. Thanks in advance.
sLaunchFolder = Folder.GetCurrent();
sInstallFolder = sLaunchFolder.."\\XMSetup\\";
sInstallExe = sInstallFolder.."setup.exe";
Dialog.Message(sInstallFolder, sInstallExe);
File.Run(sInstallExe, "", sInstallFolder, SW_SHOWNORMAL);
The dialog contains the UNC path as expected but the setup does not run. Any help here would be fantastic. Thanks in advance.
Comment