it opens "open with" prompt whenever scheduled task run

Posted by Shashwat Tripathi on Super User See other posts from Super User or by Shashwat Tripathi
Published on 2013-02-24T16:05:29Z Indexed on 2013/10/20 15:59 UTC
Read the original article Hit count: 303

I am trying to run a .vbs file on every five minutes.

I am trying to do this using windows task scheduler.

In Actions tab -> New Action, I select the file ("D:\Documents\FC3 Savegames\FC3.vbs") using open file dialog

I have made all other setting properly.

But whenever the task begin, It opens open with dialog every time.

Once I choose Notepad to in open with dialog. Then Another dialog opens from Notepad saying Can not find D:\Documents\FC3.txt file. Do you want to create a new file with three buttons Yes, No and Cancel

Help me what is wrong.
I feel that white spaces in the file path causing the problem.

Added later
Well I just fixed this by setting path to shorthand ("D:\Documents\FC3Sav~1\FC3.vbs"). But it still opens "open with" dialog everytime. Now it has two main programs saying "Keep using Microsoft Windows Script Host" and Other Program. This dialog does not open when I run vbs file directly.

© Super User or respective owner

Related posts about Windows

Related posts about windows-8