Jump to content
Sign in to follow this  
rezor92

ShellExecute Parameter with space in it

Recommended Posts

rezor92

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
jvanegmond

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
Mat

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
rezor92

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
jvanegmond

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
Jos

$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                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
jvanegmond

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  

×