Task Scheduler - how to run program on different drive?


  1. Posts : 4
    Windows 10
       #1

    Task Scheduler - how to run program on different drive?


    Hi,
    I'm trying to set up a task using Task Scheduler to run a game which is on one of my secondary drives, drive F: - I have Windows 10 installed on the C: drive.
    The problem I'm having is Task Scheduler doesn't seem able to start a program if it's on any drive except C: - I can create a task to run any program or open any file if it's on the C: drive, but nothing runs if it tries to access the F: drive.
    As an experiment, I created a simple task to open a jpeg picture - it opened no problem on the C drive, but on the F drive I was prompted to pick an application to open it with (I chose Windows picture viewer) after which the jpeg wouldn't open/load.
    Any ideas what I can do to create a task which will run on my F drive?
    Many thanks, I appreciate any help you can offer.
      My Computer


  2. Posts : 3,453
       #2

    You need to supply an executable - if it relies on a dll, supply rundll as the exe.

    eg: RunDLL32.exe C:\Windows\System32\Shimgvw.dll,ImageView_Fullscreen F:\Capture.png
      My Computer


  3. Posts : 4
    Windows 10
    Thread Starter
       #3

    Thanks for the reply Superfly, but I'm a little unsure of your instruction.

    The actual game file location is: "F:\Games\Dark Souls\DARKSOULS.exe". In Task Scheduler I have the action as "start a program" and in Program/Script I have that file location. Do I need to add anything to 'add arguments' or 'start in'?

    Thanks.
      My Computer


  4. Posts : 3,453
       #4

    Try using "explorer.exe" as Program/Script and "F:\Games\Dark Souls\DARKSOULS.exe" as the augument.

    If you are still unable to launch it, check for any switches in Task Manager (Processes tab - Rt click Menu bar - select commandline) after launching it manually.
      My Computer


  5. Posts : 4
    Windows 10
    Thread Starter
       #5

    That was it! Many thanks Superfly!
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:18.
Find Us




Windows 10 Forums