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 SolvedRunning two batch files after one another? solution BAtch file to copy contents of folder created today to another folder without dos tree solution Solvedhow to make a batch file that... solution SolvedHow to make a batch file react to the opening of an .exe file? solution Outputting batch file error output Forum After batch file output to txt, fonts are not consistent? Forum Batch file to run prog and output to txt...not working Forum How do you find a file location to open in a batch script? solution Batch file works for 1 thing, Not! for another..... solution SolvedHow can I make a batch file that has different launch options? Forum Automate Log output from Batch File Forum How do you open a batch file in a batch file? solution how to print a file to a network printer using specified printer driver using batch file? solution How to make AUTOSHUTDOWN batch file, when Mouse/Kb are disconnected solution Batch File that Self-Elevates - but how? solution More resources Read discussions in other Windows XP categories Configuration Customization Drivers Security Video !