"UninstallString"="cmd /c echo Windows Registry Editor Version 5.00>%TMP%\BlahBlah.reg
I am not trying to create BlahBlah.reg at this time, I am echoing to screen what will eventually be echoed to a different reg file to be merged with the Registry so that BlahBlah.reg can be created at a later time. The syntax is off a bit for the registry, but right now I am just worried about the syntax for the .cmd file
What I get is:
C:\>@echo "UninstallString"="cmd /c echo Windows Registry Editor Version 5.00^>^ %TMP^%\BlahBlah.reg "UninstallString"="cmd /c echo Windows Registry Editor Version 5.00^>^%TMP^%\Bla hBlah.reg C:\>@echo "UninstallString"="cmd /c echo Windows Registry Editor Version 5.00>^% TMP^%\BlahBlah.reg "UninstallString"="cmd /c echo Windows Registry Editor Version 5.00>^%TMP^%\Blah Blah.reg C:\>@echo "UninstallString"="cmd /c echo Windows Registry Editor Version 5.00>%T MP%\BlahBlah.reg "UninstallString"="cmd /c echo Windows Registry Editor Version 5.00>C:\DOCUME~1\ ADMINI~1\LOCALS~1\Temp\BlahBlah.reg
See how the ^ echoes in the output even though I am just using it to keep %TMP% from evaluating during the run of the batch file as it does in the last example above.
This post has been edited by daddydave: 24 January 2007 - 11:17 AM



Help

Back to top








