BostonGuru
12-10-2007, 04:41 PM
Does anybody know the code to save an ms dos variable to a text file? I am looking to save a timestamp variable to a one-line text file, which another bat file can then read later.
![]() | View Full Version : ms dos save variable BostonGuru 12-10-2007, 04:41 PM Does anybody know the code to save an ms dos variable to a text file? I am looking to save a timestamp variable to a one-line text file, which another bat file can then read later. Coolraul 12-10-2007, 04:59 PM You can always pipe the output to a text file if that is what you mean. jstanden 12-11-2007, 06:15 PM C:\>SET blah=Hello there C:\>echo %blah% > newfile C:\>type newfile Hello there |