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 write % signs to a batch file

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



Joined: 02 Mar 2005
Posts: 59

PostPosted: Mon May 15, 2006 5:54 pm    Post subject: how to write % signs to a batch file Reply with quote

Hello
I want to write a string in a batch file. this string shall reference to a variable in the batch file!
Problem ': if I put the % signs around SHADOW_DEVICE_1 the % signs are not writen to the batch file because autohotkey sees it as a variable.
Any hint what to do?
thank you very much
Michael
Code:

fileappend,  copy %SHADOW_DEVICE_1%\tyt.txt, c:\tsts.cmd
Back to top
View user's profile Send private message
Greg



Joined: 22 Dec 2005
Posts: 246

PostPosted: Mon May 15, 2006 6:58 pm    Post subject: Reply with quote

Escape character = `
Back to top
View user's profile Send private message
MIchael



Joined: 02 Mar 2005
Posts: 59

PostPosted: Mon May 15, 2006 7:16 pm    Post subject: Oh yes I got it thank you! Reply with quote

Hello Greg
Oh yes I got it thank you!
Code:

fileappend,  copy `%SHADOW_DEVICE_1`%\tyt.txt, c:\tsts.cmd
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   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