Sign in to follow this  
Followers 0
rezor92

ShellExecute Parameter with space in it

7 posts in this topic

#1 ·  Posted (edited)

ShellExecute("hldsupdatetool.exe", "-command update -game Counter-Strike Source -dir .") does not work

ShellExecute("hldsupdatetool.exe", "-command update -game "Counter-Strike Source" -dir .") so it should be but how to make the "" it is not accepted by autoit

and sorry for my bad english

mfg rezor

Edited by rezor92

Share this post


Link to post
Share on other sites



You can 'escape' a " character by using it twice.

$var = "Yes, ""Manadar"" is quite awesome."

MsgBox(0,"", $var)

Will show a messagebox saying:

Yes, "Manadar" is quite awesome.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

ShellExecute("hldsupdatetool.exe", "-command update -game Counter-Strike Source -dir .") does not work

ShellExecute("hldsupdatetool.exe", "-command update -game "Counter-Strike Source" -dir .") so it should be but how to make the "" it is not acceptet by autoit

use ' instead of "" for the outer ones...

Not sure if this is the problem your having...

Edited by mdiesel

Share this post


Link to post
Share on other sites

You can 'escape' a " character by using it twice.

$var = "Yes, ""Manadar"" is quite awesome."

MsgBox(0,"", $var)

Will show a messagebox saying:

Yes, "Manadar" is quite awesome.

oh man i'm so stupid

Share this post


Link to post
Share on other sites

oh man i'm so stupid

It works for a ' character too.

Make a string like so:

$var = 'oh man i''m so stupid'

Another method is just to alternate between the two:

$var = 'Yes, "Manadar" is quite awesome.'

Or

$var = "oh man i'm stupid"

Share this post


Link to post
Share on other sites

$var = "Yes, ""Manadar"" is quite awesome."

This still doesn't look correct although I can't put my finger on it what is "wrong" with it. :D

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

This still doesn't look correct although I can't put my finger on it what is "wrong" with it. :D

Maybe you should update Au3Check then. :o AutoIt has no problems with my awesomeness.

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  
Followers 0