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 do i append %ERRORLEVEL% batch command to a file

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



Joined: 12 Feb 2008
Posts: 42

PostPosted: Tue May 13, 2008 2:53 pm    Post subject: How do i append %ERRORLEVEL% batch command to a file Reply with quote

When i FileAppend %ERRORLEVEL% to a batch file it writes 0

I want to write the actual word "%ERRORLEVEL%" to the batch file.


Last edited by markreflex on Tue May 13, 2008 9:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
BoBoĻ
Guest





PostPosted: Tue May 13, 2008 2:55 pm    Post subject: Reply with quote

`%ErrorLevel`% ---> #EscapeChar
Back to top
tank



Joined: 21 Dec 2007
Posts: 417

PostPosted: Tue May 13, 2008 2:55 pm    Post subject: Reply with quote

Code:

FileAppend,`%errorlevel`%,errortext.txt

_________________
Read this
Com
Automate IE7 with Tabs
Back to top
View user's profile Send private message
markreflex



Joined: 12 Feb 2008
Posts: 42

PostPosted: Wed May 14, 2008 2:24 am    Post subject: Reply with quote

thank you
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