rono1 Posted December 9, 2005 Share Posted December 9, 2005 When trying to run an autoIT script located on a novell drive through a login script I get an error about UNC path not working. Can somebody post an example of a script executing a software install from a network drive that will work on (W2k, XP, and WINNT4)? Link to comment Share on other sites More sharing options...
seandisanti Posted December 9, 2005 Share Posted December 9, 2005 When trying to run an autoIT script located on a novell drive through a login script I get an error about UNC path not working. Can somebody post an example of a script executing a software install from a network drive that will work on (W2k, XP, and WINNT4)?Is the script compiled already? Link to comment Share on other sites More sharing options...
rono1 Posted December 9, 2005 Author Share Posted December 9, 2005 Yes, the script is compiled and it automatically launches the software install from the same directory on the network, well it's supposed to. Link to comment Share on other sites More sharing options...
seandisanti Posted December 9, 2005 Share Posted December 9, 2005 Yes, the script is compiled and it automatically launches the software install from the same directory on the network, well it's supposed to.good, and is the script executing? I mean is the error being generated by the script? Also if you have spaces in your path to the script make sure you're using single quotes around your double quotes Link to comment Share on other sites More sharing options...
rono1 Posted December 9, 2005 Author Share Posted December 9, 2005 (edited) Yes, the error generated is coming from AutoIt. An example would be this RunWait("\\novellserver\apps\ND6\ND65\ND65MSIClient\setup.exe") Edited December 9, 2005 by rono1 Link to comment Share on other sites More sharing options...
seandisanti Posted December 9, 2005 Share Posted December 9, 2005 Yes, the error generated is coming from AutoIt. An example would be thisRunWait("\\novellserver\apps\ND6\ND65\ND65MSIClient\setup.exe")maybe try using @ScriptDir if they're in the same directory. You also may want to verify that the username executing the script has permissions to execute the other executable, or use RunAsSet() Link to comment Share on other sites More sharing options...
rono1 Posted December 9, 2005 Author Share Posted December 9, 2005 maybe try using @ScriptDir if they're in the same directory. You also may want to verify that the username executing the script has permissions to execute the other executable, or use RunAsSet()I tried using @ScriptDir but the same error: "Unable to execute specified file unable to find path". Not sure what else to try now but maybe it is just not possible. Link to comment Share on other sites More sharing options...
seandisanti Posted December 9, 2005 Share Posted December 9, 2005 I tried using @ScriptDir but the same error: "Unable to execute specified file unable to find path". Not sure what else to try now but maybe it is just not possible.it is possible, there is just something we're not seeing. make sure that the active user running the script has the permissions necessary to see/run the file you're trying to execute with the script. If they don't, either change the permissions, or use RunAsSet() function in your code to execute the file with the correct permissions. I've had issues with RunAsSet before, a few things to watch for: Make sure that the login you're using in RunAsSet() has permission to install on the computer, AND to execute the file. sometimes the security is setup so that a local admin is required to install software, and the local admin login doesn't have necessary permissions on the network to access the installer... Link to comment Share on other sites More sharing options...
jefhal Posted December 9, 2005 Share Posted December 9, 2005 \\novellserver\apps\ND6\ND65\ND65MSIClient\setup.exeHave you tried running the above complete command from a command prompt while actually logged into the "novellserver". Can you run it from your machine from a command prompt? ...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format Link to comment Share on other sites More sharing options...
DaveF Posted December 9, 2005 Share Posted December 9, 2005 Yes, the error generated is coming from AutoIt. An example would be thisRunWait("\\novellserver\apps\ND6\ND65\ND65MSIClient\setup.exe") Are you using RunAsSet in the script as well? Yes yes yes, there it was. Youth must go, ah yes. But youth is only being in a way like it might be an animal. No, it is not just being an animal so much as being like one of these malenky toys you viddy being sold in the streets, like little chellovecks made out of tin and with a spring inside and then a winding handle on the outside and you wind it up grrr grrr grrr and off it itties, like walking, O my brothers. But it itties in a straight line and bangs straight into things bang bang and it cannot help what it is doing. Being young is like being like one of these malenky machines. Link to comment Share on other sites More sharing options...
rono1 Posted December 13, 2005 Author Share Posted December 13, 2005 Are you using RunAsSet in the script as well?I have not used runset because the ID has read and write to the network drive. The eventual end user should only need to read which is granted to all. 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