When using > or >> in a batch file I dont get the result I want.
For instance: ipconfig >> “C:\Documents and Settings\jbusby\My Documents\logs\ipconfig.txt”
saved as ipconfig.bat and run from cmd will append the batch file’s contents to the aforementioned file endlessly, rather than just redirect the results of command ipconfig.
I have the same problem with redirecting the results of a FOR command to a txt file.
I noticed that it adds a 1 in the front of the redirect symbols (ie it reads ” 1>> “)
Is there a symbol I should be using with the redirects since this is a batch file?