Application will only run when the server is being term served

  • Thread starter Thread starter Ryan Elder
  • Start date Start date
R

Ryan Elder

I have a batch file which just runs a program and save
the contents to a .txt file. The program runs fine if it
is run over the term server. When I run it from the
local server the batch file and program locks up. Any
ideas??? I checked the knowledge base but so far have
come up with nothing. This file will also lockup if run
as a scheduled task.
 
That's kind of funny, most people here have the opposite problem.
Can you tell a bit more about this program? What does it do, which
data does it access and where does it try to store the resulting
data file?

One of the differences between a local logon to the console and a
logon through an rdp session is that you don't run the
usrlogon.cmd from the console. Is it possible that some
environment variable like %HOMEDRIVE% is not defined in your
console logon?
Do you use the same user account in both situations?

Have you tried putting some "pause" statements into your batch
file, combined with "echo on"? You might be able to see an error
message.

If this doesn't help, I would download FileMon and RegMon from
http://www.sysinternals.com/. Run them as administrator on the
console and then try to run your batch file.

FileMon and RegMon will show you all "access denied" or "file not
found" errors that occur.
 
Back
Top