Jump to content
Sign in to follow this  
furby

Placing space into a send command line

Recommended Posts

furby

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")

Share this post


Link to post
Share on other sites
herewasplato

Send(" runas /noprofile /user:" & $host & "\ad\" & $user & " cmd")


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
furby

Send(" runas /noprofile /user:" & $host & "\ad\" & $user & " cmd")

Thank you, I can't believe it was that simple - much appreciated

Share this post


Link to post
Share on other sites
herewasplato

Thank you, I can't believe it was that simple - much appreciated

You are welcome.

You might want to read thru this post:

http://www.autoitscript.com/forum/index.ph...st&p=223951

You 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]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×