Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
append command to output file
Name: jd_mcse Date: May 12, 2005 at 07:25:17 Pacific OS: DOS CPU/Ram: Pentium
Comment:
How can I combine more that one command so that it would append the output on the same line "next to each other"? Example:
date /t + hostname + echo %username% >> c:\list.txt
Well, someone might have an answer for you here, but the main focus of this forum is the DOS operating system. Bit of a different ballgame using the XP/NT command prompt, there may be more options available using the extended DOS command set.
If you just want to 'stack' commands, seems like a plain old batch file, with each line appending to the target file would do
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.
Summary: All: I have a bunch of text files (file1.txt, file2.txt, file3.txt, etc.) Is there a command that will combine all the files into 1 (i.e. just tack file2 to the bottom of file1, etc.) I THOUGHT that t...
Summary: Redirect errors and results from DOS commands to a file with the > method...For example, to save a directory listing, type "DIR C:\ > C:\DIRS.TXT"...then to append the contents of D: you would type "D...
Summary: Only if you allow the batch scripts to create a small program that is then called and it edits the text file into a batch file, according to some fixed rules. In this simple case the program would act...