|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to login via batch file
Greetz people.
I'm trying to create a batch file that will lead to the running of an executable. I will be firing the batch file from one machine, and the batch file is then to communicate to out from my local machine to a server on which the application will be fired. I'm a bit lost as to how I would write the script in the batch file to log in to the server however. As a generic example, I am trying to do the following: Code:
server /U username /P userpass \\servername %SystemRoot%\system32\notepad.exe I am confused as to how to properly write the first line. If anyone could assist I'd be appreciate it. |
|
#2
|
|||
|
|||
|
You'll probably want to map the server to your local machine, which will prompt for login information if you have access rights to the resource. Such as:
Code:
net use z: \\ServerName\ResourceName\ MyPassword /user:Domain\MyUserName |
|
#3
|
||||
|
||||
|
This would be much easier in WSH rather than batch. If you're still interested in a solution, post back and we can look at your options.
__________________
Click the image if at any point you don't like my decision.Scripting problems? Windows questions? Ask the Windows Guru! |
![]() |
| Viewing: ASP Free Forums > System Administration > Windows Scripting > How to login via batch file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|