1.

Solve : Append one line in Batch File?

Answer»

hi
I have 2 different problem
1. How to append one line in existing Text file through one batch PROGRAMMING in MS-DOS/WINDOWS.
2. How to logon server without giving the username and password through Batch Programming in the above mentioned platform.
Thanks & Regards
Rishi,INDIAFOR #1 use the >> symbol to append data to a file.

Code: [Select]
ECHO text >> file.ext


#2 I don't really understand. You can pump signon information into a login SCRIPT by redirecting the information.

Code: [Select]
echo name > signon.dat
echo pswd >> signon.dat
loginscript < signon.dat


Hope this helps.



Discussion

No Comment Found