Windows 10: Why Windows Script Can Not find the task.vbs file?

Discus and support Why Windows Script Can Not find the task.vbs file? in Windows 10 Software and Apps to solve the problem; i really don't know why is windows sending me this for the past year my pc was working fine and this came out of blue yesterday if you know anyting... Discussion in 'Windows 10 Software and Apps' started by Aryan Lamichhane1, Jun 15, 2024.

  1. Why Windows Script Can Not find the task.vbs file?


    i really don't know why is windows sending me this for the past year my pc was working fine and this came out of blue yesterday if you know anyting about this please share it with me.thanks for your help

    :)
     
    Aryan Lamichhane1, Jun 15, 2024
    #1

  2. Running a VB Script File Using Windows 10 Task Scheduler

    You can invoke VB scripts through the Task Scheduler, same as batch files or .exe files. What problem do you actually have? What is the script you run? Is it supposed to be interactive?

    There is little difference between cscript.exe and wscript.exe. When you run cscript.exe you will open a black Command Processor window (cmd.exe). With wscript.exe you won't. Furthermore, the instruction wscript.echo will do different things:

    • Under cscript.exe: Write a line of text in the Command Processor window.
    • Under wscript.exe: Generate message box.
    This difference is important for scripts being invoked by the Task Scheduler.
     
    Frederik Long, Jun 15, 2024
    #2
  3. Running a VB Script File Using Windows 10 Task Scheduler

    Here is my VB Script code:

    Option Explicit    

    Dim objExcel, strPathExcel

    Set objExcel = CreateObject("Excel.Application")

    strPathExcel = "C:\Users\John J\Documents\Great Oaks\2018 Season\Handicap Test.xlsm"

    objExcel.DisplayAlerts = False

    objExcel.Workbooks.Open strPathExcel

    objExcel.Application.Run "'Handicap Test.xlsm'!HandicapRunTrial"

    objExcel.ActiveWorkbook.SaveAs strPathExcel

    objExcel.Workbooks.close

    objExcel.Application.Quit

    WScript.Quit

    In Task Scheduler Library, created a folder called "GOCC"

    I than hit "Create Basic Task", name it and give brief description/

    From the "Trigger" menu, I give a start date and time.

    From the "Action" menu, I hit "Start", and browse for my vbs file. I click on it and the full path command is listed. The task is listed in the Scheduler.

    Then I double click on the task, I keep the user account as "John J", click on " Run whether or not user is logged on or not, click

    "Run with highest privileges", click on "Hidden" and then configure the task for "Windows 10." I hit "OK" which the computer prompts me for my password. I enter it and hit "ok."

    The problem is that the vbs never runs at the designated date and time. I do not understand why it does not work.

    Thanks
     
    John JVrana, Jun 15, 2024
    #3
  4. Why Windows Script Can Not find the task.vbs file?

    Running a VB Script File Using Windows 10 Task Scheduler

    Congratulations!

    Your account name does indeed have an embedded space.

    You can now use the Task Scheduler to run FNL2.vbs.

    The .xml file you posted looks fine, except for the name of the script file.

    Conclusion. There is something wrong with John's PC. His VB Scripts run fine at the Command Prompt, whether invoked directly, with cscript.exe or with wscript.exe. However, when invoked through the Task
    Scheduler they will only work when invoked explicitly with cscript.exe.
     
    Frederik Long, Jun 15, 2024
    #4
Thema:

Why Windows Script Can Not find the task.vbs file?

Loading...
  1. Why Windows Script Can Not find the task.vbs file? - Similar Threads - Why Script find

  2. Can not find script file Windows Script Host error startup_str_801.vbs - Fix?

    in Windows 10 Gaming
    Can not find script file Windows Script Host error startup_str_801.vbs - Fix?: Not sure why I'm getting this error message. I eliminated the vbs file after Windows Security detected something was up and after running a full scan on command prompt. Unfortunately, that pesky message just keeps showing up every time I boot up. Please help T.T...
  3. Can not find script file Windows Script Host error startup_str_801.vbs - Fix?

    in Windows 10 Software and Apps
    Can not find script file Windows Script Host error startup_str_801.vbs - Fix?: Not sure why I'm getting this error message. I eliminated the vbs file after Windows Security detected something was up and after running a full scan on command prompt. Unfortunately, that pesky message just keeps showing up every time I boot up. Please help T.T...
  4. Why Windows Script Can Not find the task.vbs file?

    in Windows 10 Gaming
    Why Windows Script Can Not find the task.vbs file?: i really don't know why is windows sending me this for the past year my pc was working fine and this came out of blue yesterday if you know anyting about this please share it with me.thanks for your help...
  5. Why Windows Script Can Not find the task.vbs file?

    in Windows 10 Network and Sharing
    Why Windows Script Can Not find the task.vbs file?: "first of all sorry for the low quality image" i really don't know why is windows sending me this for the past year my pc was working fine and this came out of blue yesterday if you know anyting about this please share it with me.thanks for your helps...
  6. Why Windows Script Can Not find the task.vbs file?

    in Windows 10 Gaming
    Why Windows Script Can Not find the task.vbs file?: "first of all sorry for the low quality image" i really don't know why is windows sending me this for the past year my pc was working fine and this came out of blue yesterday if you know anyting about this please share it with me.thanks for your helps...
  7. Why Windows Script Can Not find the task.vbs file?

    in Windows 10 Software and Apps
    Why Windows Script Can Not find the task.vbs file?: "first of all sorry for the low quality image" i really don't know why is windows sending me this for the past year my pc was working fine and this came out of blue yesterday if you know anyting about this please share it with me.thanks for your helps...
  8. Find Task list entries with VBS

    in Windows 10 Network and Sharing
    Find Task list entries with VBS: I want to detect if a given program App is running. I have made the following VB-Script to list all "programs" running: Sub ListPGMs Dim WMIService Dim ProcessList dim objSWbemObject Set WMIService = GetObject"winmgmts:" & "{impersonationLevel=impersonate}!\\" &...
  9. Can not find script file

    in Windows 10 BSOD Crashes and Debugging
    Can not find script file: I get this message every time I start my computer :can not find script file c/users/perflogs/DCIM.JPG. I looked the perflogs file but the folder is empty (checked hidden files). Is there any solution for this error? How to remove this message that appears every time I start...
  10. Cannot find script file 1.vbs

    in Windows 10 BSOD Crashes and Debugging
    Cannot find script file 1.vbs: I keep on receiving a Windows script file error saying Cannot find script file "C:\ProgramData\Windows\profile\1.vbs" I have run a malware scan multiple times but i still keep on getting this error....