Scheduled task on windows server (1 Viewer)

TDZ7200

New member
Local time
Today, 21:31
Joined
Dec 3, 2012
Messages
7
Hello

I have a vbs-script that opens my access database db.mdb and runs the module "Export":

dim accessApp
set accessApp = createObject("Access.Application")
accessApp.OpenCurrentDataBase("D:\Data\db.mdb")
accessApp.Run "Export"

accessApp.Quit
set accessApp = nothing

This works fine as a scheduled task on a Windows 7 computer.

Is there a way to make this work on a Windows Server 2008 R2 ? When I double click the vbs-file, the file opens instead of runs. And when I create a scheduled task, nothings happens.

Any help is wellcome. Manu thanks in advance.
 

TDZ7200

New member
Local time
Today, 21:31
Joined
Dec 3, 2012
Messages
7
What worked for me, was splitting everything in two steps : I made a batch file which calls the vbs-script. In windows 7, this split is not required : you can run the vbs-script directly in the task scheduler.
 

Users who are viewing this thread

Top Bottom