Running an .EXE as a login script

J

Jerry Camel

I want to run an app that was developed in VB .NET as a login script, but
the app crashes immediately with an unknown exception. The app compiles and
runs just fine when run as a normal application, but when called as a login
script through a group policy setting, it just dies. Is there some trick to
getting a .Net app to run as a login script? Thanks.

Jerry
 
R

Ricardo M. Urbano - W2K/NT4 MVP

Jerry said:
I want to run an app that was developed in VB .NET as a login script, but
the app crashes immediately with an unknown exception. The app compiles and
runs just fine when run as a normal application, but when called as a login
script through a group policy setting, it just dies. Is there some trick to
getting a .Net app to run as a login script? Thanks.

Jerry

The app may not like running from a network UNC path. Login scripts run
from UNC paths, not a drive letter.

You can test that by creating a shortcut to your .exe and specifying a
UNC path as the start in location or use the start command and use the
/d switch to specify a UNC path as the starting directory.

hth
 
D

David H. Lipman

Instead of calling the EXE directly, call a batch file that calls the EXE.

This way you can work with the ENVIRONMENT, map a drive or setup anything that may be
required by the EXE to execute correctly.

Dave



| I want to run an app that was developed in VB .NET as a login script, but
| the app crashes immediately with an unknown exception. The app compiles and
| runs just fine when run as a normal application, but when called as a login
| script through a group policy setting, it just dies. Is there some trick to
| getting a .Net app to run as a login script? Thanks.
|
| Jerry
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top