Link to home
Start Free TrialLog in
Avatar of bcp5190
bcp5190

asked on

How can i shhedule to run exe using at command.

How can i schedule that opens up web browser amd do some activity. I have exe that does all of thing
that i want to do if i run it manually but if i try to run it from nt scheduler it fail to run.

I also try to open c:\fullpath\calc.exe from nt scheduler and it also fail and if i try to run any silence
exe that works fine.

I like to make a schedule to run exe every tue, wed , thr, fri and sat (7 am)
Avatar of vinnyd79
vinnyd79

Try this:

at 07:00 /interactive /next:T,W,Th,F,Sa calc.exe

Just replace calc.exe with your app. To make sure the schedule took,type "at" without any parameters
For Saturday you can just type "S" but "Sa" in my previous comment should still work.Also you will probably need to add entire path of your app unless you put it in the Machines System directory which is probably system32.
also, ensure the scheduler service has the relevant permissions to carry out the scheduled task.

you can do this in the services applet in control panel.

by default it has local system permissions.
Avatar of bcp5190

ASKER

I have a vb app that connect to url and logon and download data to local Hard Drive. I'm using SendKeys command to logon to secure website.
My shcedule wokrs fine but if i logoff and my shedule seems doesnot work.
 
Thats because the /interactive switch lets the app interact with the desktop of the logged on user.If you are not logged on I don't think you will be able to use sendkeys to log onto a website.
Avatar of bcp5190

ASKER

I think you are right because shcedule works if i'm logon  it only doesnot work if i'm not logon.

Is there any other method i can use to schedule my exe to run.

How about SQL job will it work and how can i make it.
I don't think the problem is with the scheduler.I think your problem is with SendKeys.I don't think there is anyway to use SendKeys while you are logged out because SendKeys sends the Data to the active window,which you will not have when logged out.
ASKER CERTIFIED SOLUTION
Avatar of vinnyd79
vinnyd79

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bcp5190

ASKER

Hello vinnyd79
i try to download the project but look like there is an error in project i cannot open project