PDA

View Full Version : Registry key to run a batch file?


sabuche
4-15-09, 10:19 AM
Hi Folks:

I have created a batch file that contain: net use \\serverIPaddress adminpassword /user:adminid. This batch file is basically run and caches the server IP with admin ID and password so that when my users launch the application (that also accessing that same serverIPaddress), it just works and they don't need to input anything, otherwise it will prompt for AdminID and AdminPassword.

By placing this batch file in the All user startup folder, it will works however, I don't want my users to see the batch file since it contain AdminID and AdminPassword I would like to place the batch file deep some where on the C:\ for now lets call it C:\hidden\batchfile.

My wish is to create a Registry key that would go to C:\hidden\batchfile and Execute in silence, will that be possible? If it is, what should I put on the registry key and where?

Thank you for your time.
Sabuche

Autoload
4-16-09, 02:20 AM
http://www.kixtart.org

snowmaker
4-16-09, 06:04 AM
AutoIt v3 - Automate and Script Windows Tasks - For Free! (http://www.autoitscript.com/autoit3/)