Solved How do i output a variable reference to another batch file? Tags: Windows XP Last response: December 22, 2011 12:02 AM in Windows XP Share recojohnson March 30, 2010 10:14:17 PM i want to output this line to another batch file but have the variable name output exactly as it is. ex. echo %testvariable% >> test.bat That would output whatever the variable is. But how can i get it to output character for character %testvariable% "%testvariable" - i want to output the words including the percent signs. Thanks in Advance More about : output variable reference batch file Best solution digitalprospecter March 31, 2010 8:56:47 PM Ok... this presented a challenge in obscure batch file scripting (something I haven't had to do in years! If I understand your stated objective correctly, you want to create a secondary file that contains the literal output of %testvariable% To do this the command would be: echo %%testvariable%% >>test.bat Hope this helps! recojohnson December 22, 2011 12:02:41 AM Best answer selected by RecoJohnson. Can't find your answer ? Ask ! Publish Related resources: ForumWindows batch file : set output of program to a variable ? Forumrobocopy errorlevel batch file usage. ForumBatch file with multiple if statements ForumBatch file renaming based on barcode ForumDOS Batch Script to Determine When ISP Changes my IP Address ForumBatch File : Display Current Time Zone ForumBatch file to read registry ForumBatch file to get the cd drive and system drive ForumBatch File Error Handling ForumRun Batch file before Windows XP loads ForumBatch file help ForumBATCH file "grab filename" ForumSET Variable = Myproject ForumHELP!!! Please with Windows XP ForumHow to enable administrator account in xp ForumHow to make windows xp taskbar become normal ForumHow to removed the write protected ForumHow to retrieve the files onces i delete it? ForumHow to close a programme ForumHow to remove espn java check More resources Read discussions in other Windows XP categories Configuration Customization Drivers Security Video !