Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Login script PLUS run exe at login

Status
Not open for further replies.

swoodnj

Technical User
Jan 6, 2005
9
US
I have several users connecting to a Windows 2000 Terminal Server that run a login script for drive mappings. We wish to have these users locked into running an application automatically at login via the Environment tab. What seems to be happening is that the exe won't run because it can't find the path specified. I know the path is valid and am wondering...is the exe trying to run before the login script finishes mapping drives? There's about 4 net use statements in the login bat file. I thought about running the exe in the batch file but then the TS session won't close automatically when the user exits the application.
Thanks in advance for any advice!
 
Did you try using CALL in your batch file? For example, logon.bat:

@echo off
net use q: \\servername\sharename
net use r: \\servername2\sharename2
call r:\path\application.exe
 
Will doing it that way end the terminal session when the user exits the application? I'll try experimenting with that, thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top