AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to escape special characters in command line parameters

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
deleyd



Joined: 08 Mar 2008
Posts: 64
Location: Santa Barbara

PostPosted: Sun Aug 30, 2009 4:12 pm    Post subject: How to escape special characters in command line parameters Reply with quote

You aren't sure how to escape the special characters in that parameter so it comes out right?

How Command Line Parameters Are Parsed
How to escape the special characters in your parameters
with numerous examples.


For example
  • to get "Call Me Ishmael" (parameter includes double quotes) use "\"Call Me Ishmael\""
  • to get C:\TEST A\ (parameter includes trailing slash) use "C:\TEST A\\"
  • to get "C:\TEST A\" (parameter includes double quotes and a trailing slash) use "\"C:\TEST A\\\""

How Command Line Parameters are Parsed:
http://www.autohotkey.net/~deleyd/parameters/parameters.htm
_________________
http://www.autohotkey.net/~deleyd/xprxmp/autohotkey_expression_examples.htm
Back to top
View user's profile Send private message Visit poster's website
BoBoł
Guest





PostPosted: Sun Aug 30, 2009 4:28 pm    Post subject: Reply with quote

Would you mind to reopen/archive that post/thread at the Script & Functions section of the forum (btw, something like "... [HowTo]" at the subject line would indicate its main purpose).

Otherwise (plain guessing) your tutorial will drown quite fast at "Ask 4 Help", and people (like myself Rolling Eyes ) filtering specific sections won't find it anymore Shocked

And btw, thx for sharing it Cool
Back to top
Guest






PostPosted: Sun Aug 30, 2009 4:39 pm    Post subject: Reply with quote

Let me be the first to heap praises upon you. That is a very comprehensive collection of information, very well presented, and very much appreciated. Exclamation
Back to top
deleyd



Joined: 08 Mar 2008
Posts: 64
Location: Santa Barbara

PostPosted: Sun Aug 30, 2009 6:09 pm    Post subject: Reply with quote

BoBo, you wish me to repost on the Scripts forum? Or is there some way to move a post to the Scripts forum I don't know about.
_________________
http://www.autohotkey.net/~deleyd/xprxmp/autohotkey_expression_examples.htm
Back to top
View user's profile Send private message Visit poster's website
jaco0646



Joined: 07 Oct 2006
Posts: 3113
Location: MN, USA

PostPosted: Sun Aug 30, 2009 9:58 pm    Post subject: Reply with quote

I think it's fine to leave the topic here. Threads in S&F are more for displaying code. All tutorials should also be listed on the Wiki, so that a comprehensive list is kept.

@deleyd
I've put a couple links to your work on that page, and I see this topic linked at the bottom of your AutoHotkey Expression Examples. You've created the most comprehensive AHK documentation outside of the official Help file. Kudos!

If I may make a suggestion, the amount of information on that page looks overwhelming. I think it would be more palatable to new users if it was broken down into several pages. It actually looks like a great candidate for a CHM file to me, in the same style as the official docs.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group