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! Share recojohnson December 22, 2011 12:02:41 AM Best answer selected by RecoJohnson. m 0 l Can't find your answer ? Ask ! Publish Related resources Batch file command output to variable Forum Windows batch file: set output of program to a variable? Forum Windows batch file: set output of program to a variable? Forum How select multiple values for variable from given set in DOS batch file Forum Vista 64-bit Batch File Variable Questions Forum BAtch file to copy contents of folder created today to another folder without dos tree Forum Solvedhow to make a batch file that... Forum SolvedHow to make a batch file react to the opening of an .exe file? Forum Outputting batch file error output Forum How do you open a batch file in a batch file? Forum After batch file output to txt, fonts are not consistent? Forum Batch file to run prog and output to txt...not working Forum Batch file works for 1 thing, Not! for another..... Forum SolvedHow can I make a batch file that has different launch options? Forum Automate Log output from Batch File Forum Running two batch files after one another? Forum how to print a file to a network printer using specified printer driver using batch file? Forum How to make AUTOSHUTDOWN batch file, when Mouse/Kb are disconnected Forum Batch File that Self-Elevates - but how? Forum How to create a batch file for removing one Entry in a registry key Forum More resources Read discussions in other Windows XP categories Configuration Customization Drivers Security Video !