|
-
July 8th, 2011, 10:26 AM
#1
Must be an easy one - percentage sign in windows command line
I would like to pass the string "%24x" (without double quotes) to my application as a command line argument (usually referred as argv. I cannot on Windows7.
I tried the following:
> app.exe %24x
--> $x
> app.exe %%24x
--> %$x
> app.exe %;24x
--> %;24x
> app.exe "%24x"
--> $x (so quoting does not look to change anything)
So, how will a single percentage sign go through as an argument? How to do escaping?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|