I'm creating a scheduled task within a .vbs that creates the task using:
schtasks /create /tn Eterna /tr "d:\data\eterna.vbs /sc WEEKLY /d MON,TUE,WED,THU,FRI /st 08:00:00
But when I run the task, it thinks the current directory is c:\windows\system32. I have an .ini file in the same directory as .vbs (d:\data) that it can't find. How to I get the task scheduler to use the same directory as the target of the action?