Judy Posted November 11, 2006 Share Posted November 11, 2006 i am trying to run a .exe file on local intranet with the following code: RunWait($name, $file_path) and I got a window asking me to configure XP. Can't figure out what is the problem. Link to comment Share on other sites More sharing options...
Locodarwin Posted November 11, 2006 Share Posted November 11, 2006 What's the filename of the executable you're trying to run? -S (Yet Another) ExcelCOM UDF"A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly...[indent]...specialization is for insects." - R. A. Heinlein[/indent] Link to comment Share on other sites More sharing options...
Judy Posted November 11, 2006 Author Share Posted November 11, 2006 What's the filename of the executable you're trying to run?-S it's Setup.exe Link to comment Share on other sites More sharing options...
Cue Posted November 11, 2006 Share Posted November 11, 2006 Does Running Setup.exe from local directory work? Link to comment Share on other sites More sharing options...
Judy Posted November 11, 2006 Author Share Posted November 11, 2006 Does Running Setup.exe from local directory work?No. Neither lacal dicrectory nor the intranet works.I tryied add another line and the pop-up window disappeared. But still doesn't work at all. Error info said neither bad username or the password(I am sure I used the corrcect domain name , username, password)RunAsSet()Run($name, $file_path) Link to comment Share on other sites More sharing options...
Locodarwin Posted November 11, 2006 Share Posted November 11, 2006 Okay. "Setup.exe" is a pretty generic name... ...what is it, if you don't mind me asking? What is your script trying to install? -S (Yet Another) ExcelCOM UDF"A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly...[indent]...specialization is for insects." - R. A. Heinlein[/indent] Link to comment Share on other sites More sharing options...
Helge Posted November 11, 2006 Share Posted November 11, 2006 You should specify the entire path to the file in the first parameter, and not in the second. What happens now is that the file is not found in the script's @WorkingDir, but instead a file with the same name in the system32-folder is started, which shows a messagebox as seen on the picture. Do something like this instead : RunWait("\\helge\install\setup.exe") Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now