eric M Posted November 15, 2007 Posted November 15, 2007 (edited) Hi, When I use the "run" fonction only, I can use variable like run($cmd). If I put a "runasset" before (to use user and password) the "run($cmd)" not work anymore. Autoit tell me that "$cmd" is not correct ("incorrect directorie"). Can you help... Edited November 15, 2007 by eric M
AlmarM Posted November 15, 2007 Posted November 15, 2007 Can u give me the source?? (The script ) Because I think you have: Run("$cmd") Is that not the case? Just give the source Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.
eric M Posted November 16, 2007 Author Posted November 16, 2007 Can u give me the source?? (The script ) Because I think you have: Run("$cmd") Is that not the case? Just give the source Hi AlmarM, here is the source code : $cmd=@ComSpec & " /k help | more" RunAsSet("user", "domain", "password",0) Run($cmd) RunAsSet() This code not run : Y:\Mes Documents\test.au3 (4) : ==> Unable to execute the external program.: Run($cmd) Le nom de répertoire est incorrect. If I do a Run($cmd) only, its all right : $cmd=@ComSpec & " /k help | more" ;RunAsSet("user", "domain", "password",0) Run($cmd) ;RunAsSet() (see print screen)
Danny35d Posted November 16, 2007 Posted November 16, 2007 Run() Try adding the working directory.Run($cmd, @TempDir) AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line
eric M Posted November 19, 2007 Author Posted November 19, 2007 Run() Try adding the working directory.Run($cmd, @TempDir)Hi Danny35d,Its all right after adding @tempdir...Thanks to all of you for this help.
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