1.

Solve : Password commands in batch files?

Answer»

I'm TRYING to write a batch file to automate a SQL server truncate command, but it requires a password to be put in to access the command lines. How do I write the Batch file to automatically enter the password?You might try using the pipe, but be aware that not all PROGRAMS can TAKE info this way:

ECHO password | TSQL parameters

The above is just an example. I just chose TSQL arbitrarily.

Does not placing a password in a text file (where anyone can read it) create a security hole :-?



Discussion

No Comment Found