Quantcast
Channel: Windows 7 Miscellaneous forum
Viewing all articles
Browse latest Browse all 11372

Batch Files user/password v2

$
0
0

Hello,

I am new on creating batch files and I am self-teaching myself. Hopefully this forum can help me out.

I'm trying to start an application (WinSQL) and login automatically instead of a me login manually. I have the part of opening the application but having troubles in inserting my username/password.

Is their a way that the batch file can insert my username/password without me inserting manually? I'm I using the (-u, -p) commands correctly

This is what I have so far:

@echo off
color 2
cls
echo this code opens winsql, connects to the database using the user name and password. Then runs a query
"C:\Program Files (x86)\Synametrics Technologies\WinSQL\Winsql.exe" -dEDW_NZ_PROD01 -u-xxx -p-xxxx "-q\\Scadfs1\retailops\Reporting\Gervais\JMora\Jason Work\SQL Query\DivisionDescription.sql" -a
pause

By the way, I am using windows 7 64 bit.

Thanks


Viewing all articles
Browse latest Browse all 11372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>