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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch File Hell!

Status
Not open for further replies.

daveinuk

Technical User
Sep 2, 2005
72
DE
Hi All, can you help me.

I am a normal user on W2000 server and I run a scheduled task under my normal account which triggers a batch file. The program within the batch file however does not like it if it can not open the windows of the program. I had been advised to buy autotask 2000 and then use the option to run the program 'hidden' which would get me around my problem, but my system administrators wont let me install this program on the server so im only allowed to use the normal windows scheduler and batch files. When my schedules run they come back with the code 0x0 (which i think means its ran ok) but every task is putting in the log 'task exceeded allowed time'. Is there any code i can put in my batch file or in the scheduler to tell it to run in 'hidden'mode? Thanks in advance.
 
What exactly do you mean by "not open the windows of the program"? What is it that you are actually trying to carry out?

If you have something that needs user interaction, as in it has a wizard style interface, then there is no way you can do it in a batch, unless the program actually has a commandline interface where you can pre-specify the perameters.

Hope this Helps.

Neil J Cotton
njc Information Systems
Systems Consultant
 
Hi. On the program release notes it says the following:

'if you schedule visual cut to run on a pc when no one is logged iny ou may experience difficulties (the scheduled task may 'hang'). Since there is no desktop in such a case, it creates a problem for visual cut windows.'

The program has a complete command line interface which has all the paramaters in it so no user interaction is required.
 
Can you not use the commandline interface to specify the actions you want to do?

Hope this Helps.

Neil J Cotton
njc Information Systems
Systems Consultant
 
have you read the user manual, there is a full section on scheduling, saving your actions, and copying the commandline call into a schedule to run "unattended"

Hope this Helps.

Neil J Cotton
njc Information Systems
Systems Consultant
 
Just in case you haven't got a copy / know it exists Here is the Manual

Hope this Helps.

Neil J Cotton
njc Information Systems
Systems Consultant
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top