furby Posted May 6, 2007 Share Posted May 6, 2007 Hi, I wonder if anyone can help me with a problem of placing a space into a command line. At the moment when I run this command line everything goes to the prompt alright except for the "cmd". It gets pushed up against the users name like this runas /npprofile /user:\ad\admincmd how do I place a space between the admin and the cmd ?? send(" runas /noprofile /user:"&$host& "\ad\"&$user&"cmd") Link to comment Share on other sites More sharing options...
herewasplato Posted May 6, 2007 Share Posted May 6, 2007 Send(" runas /noprofile /user:" & $host & "\ad\" & $user & " cmd") [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
furby Posted May 7, 2007 Author Share Posted May 7, 2007 Send(" runas /noprofile /user:" & $host & "\ad\" & $user & " cmd") Thank you, I can't believe it was that simple - much appreciated Link to comment Share on other sites More sharing options...
herewasplato Posted May 7, 2007 Share Posted May 7, 2007 Thank you, I can't believe it was that simple - much appreciatedYou are welcome.You might want to read thru this post:http://www.autoitscript.com/forum/index.ph...st&p=223951You can probably do what you want done without having to send characters to a command prompt window.-MSP- [size="1"][font="Arial"].[u].[/u][/font][/size] 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