Login & password prefilled in a .bat
Skrypt
Posted messages
23
Status
Member
-
Skrypt Posted messages 23 Status Member -
Skrypt Posted messages 23 Status Member -
Hello,
This has been a bit of a struggle for me for a while: making a batch file that can launch an executable (*.exe) with the login and password already written into the batch file (e.g., those of the administrator account) under Windows XP, so the user doesn't have to type them.
If it's not batch, it's okay; I can manage in C/C++ or Basic or other languages if necessary.
I hope I was clear enough ^^.
Thanks in advance,
--
<Skrypt>
Configuration: Windows XP Opera 9.60
This has been a bit of a struggle for me for a while: making a batch file that can launch an executable (*.exe) with the login and password already written into the batch file (e.g., those of the administrator account) under Windows XP, so the user doesn't have to type them.
If it's not batch, it's okay; I can manage in C/C++ or Basic or other languages if necessary.
I hope I was clear enough ^^.
Thanks in advance,
--
<Skrypt>
Configuration: Windows XP Opera 9.60
4 answers
-
Hi,
Have you tried:
runas /savecred /user:administrator 'your command' ?
The password should only be asked on the first launch and then kept in memory thanks to savecred -
Thank you for your reply, but it’s not exactly what I’m looking for:
Windows should not prompt for a password; I’d like it to already be written in the file along with the login.
Or a code that would automatically fill in the input fields. To consider ...
Best regards,
--
<Skrypt> [DarK Net.WorK] -
Ben you execute it once, you enter the password and on subsequent times the password is no longer requested.
-
I understood very well, but the goal isn’t the ^^.
I’d like to know HOW TO MAKE this batch file (or another language), I’d like to know the technique that can be used ^^.
It’s in the context of developing a program, it’s necessary that this task be automated in the way described previously.
Sincerely,
--
<Skrypt>