Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

RunasWait autoit with spaces in path

$
0
0

My Autoit file runs under system credentials (i believe) , after a windows deployment using setupcomplete.cmd

 

And because of that a program i try to install wont install.
What i like to do is create a small autoit3 script that looks like below:

 

 

$sPassword = "mypassword"
RunAsWait("Administrator",@ComputerName,$sPassword,0,"c:\Program Files (x86)\AutoIt3\AutoIt3.exe C:\Windows\Setup\Scripts\Configuremyapp.au3",$working)

 

So i would like to launch another autoit session running under different credentials, but how to do that ?
Since C:\program files (x86) contains a space ?.
And what about the working dir , what should that be?


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>