Windows 10: Virus found in run.vbs file

Discus and support Virus found in run.vbs file in Windows 10 Gaming to solve the problem; Virus found in run.vbs file https://answers.microsoft.com/en-us/windows/forum/all/virus-found-in-runvbs-file/b64ae503-ff52-45c1-af95-496f9ecb9d46 Discussion in 'Windows 10 Gaming' started by Sarthak Garg, Dec 9, 2023.

  1. Virus found in run.vbs file


    Virus found in run.vbs file

    :)
     
    Sarthak Garg, Dec 9, 2023
    #1

  2. VBS Msgbox

    Denis,

    • I was too lazy to compute the size programmatically. And, it the 2005 version the message box always came up hidden, so I always used 0 for the top. It's also part of my OCD to be able to control everything.
    • I personally don't need it to timeout. I used this in vbs files to ask to continue to the next step, skip the next step or cancel the vbs. BTW, I added the code back in but keep it assign it to 0.
    • Sound was calling Windows Media Player: WshShell.Run "C:\Users\donast\desktop\sndrec32.lnk",7,false the lnk is a shortcut on my old desktop that had: "C:\Program Files (x86)\Windows Media Player\wmplayer.exe"
      "C:\Users\Public\Music\Wavefiles\Twilight.wav"
    • Yes. The value is the number of the button in the order specified when calling it.
    • Never really thought about it as all my VBS/VBA code is relatively simple and I add comments in the file as necessary to remind me what is going on. I don't usually have anyone to share my code.
    FYI I use a VBS to call it. Here's a line from a test vbs I use to run your version:

    choice=Wshshell.run("custommsgbox.vbs " & wscript.scriptname & " ""CopyFiles.vbs done. Continue with UnArchVista.vbs?"" ""White"" ""Black"" 40 ""Yes"" ""No"" ""Cancel""",1,true)

    Copy it to a text editor to see all the spaces, etc. Took me a while back the to figure it out.

    Don
     
    DRARetired, Dec 9, 2023
    #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, Dec 9, 2023
    #3
  4. Virus found in run.vbs file

    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, Dec 9, 2023
    #4
Thema:

Virus found in run.vbs file

Loading...
  1. Virus found in run.vbs file - Similar Threads - Virus found run

  2. Found a file with a fake name, is it a virus?

    in Windows 10 Gaming
    Found a file with a fake name, is it a virus?: I randomly noticed this file on my C drive today. The file type is something I have never heard of and can't find online. It's quite large at 18GB. I scanned with malwarebytes and it found nothing, and Windows Security scanner found nothing. I never clicked on the file to try...
  3. Found a file with a fake name, is it a virus?

    in Windows 10 Software and Apps
    Found a file with a fake name, is it a virus?: I randomly noticed this file on my C drive today. The file type is something I have never heard of and can't find online. It's quite large at 18GB. I scanned with malwarebytes and it found nothing, and Windows Security scanner found nothing. I never clicked on the file to try...
  4. vbs virus lag

    in Windows 10 Gaming
    vbs virus lag: so after i deleted the vbs.run virus my pc still lagging and stuttering while playing roblox,but before i got that virus my pc run smoothly please help https://answers.microsoft.com/en-us/windows/forum/all/vbs-virus-lag/6c10880a-f570-45d9-a3a0-12153efbfb96
  5. vbs virus lag

    in Windows 10 Software and Apps
    vbs virus lag: so after i deleted the vbs.run virus my pc still lagging and stuttering while playing roblox,but before i got that virus my pc run smoothly please help https://answers.microsoft.com/en-us/windows/forum/all/vbs-virus-lag/6c10880a-f570-45d9-a3a0-12153efbfb96
  6. vbs virus lag

    in Windows 10 BSOD Crashes and Debugging
    vbs virus lag: so after i deleted the vbs.run virus my pc still lagging and stuttering while playing roblox,but before i got that virus my pc run smoothly please help https://answers.microsoft.com/en-us/windows/forum/all/vbs-virus-lag/6c10880a-f570-45d9-a3a0-12153efbfb96
  7. Virus found in run.vbs file

    in Windows 10 Software and Apps
    Virus found in run.vbs file: Virus found in run.vbs file https://answers.microsoft.com/en-us/windows/forum/all/virus-found-in-runvbs-file/b64ae503-ff52-45c1-af95-496f9ecb9d46
  8. My pc found a virus and running laggy.

    in Windows 10 Gaming
    My pc found a virus and running laggy.: My antivirus founded a virus named "Nsudo.exe" and i removed it through the antivirusMalwarebytes itself but i am bit worried about my laptop because from few days my laptop freezes suddenly then i can do nothing and i have to just forcefully shutdown it and have to again...
  9. My pc found a virus and running laggy.

    in Windows 10 Software and Apps
    My pc found a virus and running laggy.: My antivirus founded a virus named "Nsudo.exe" and i removed it through the antivirusMalwarebytes itself but i am bit worried about my laptop because from few days my laptop freezes suddenly then i can do nothing and i have to just forcefully shutdown it and have to again...
  10. VBS the specified module could not be found

    in Windows 10 BSOD Crashes and Debugging
    VBS the specified module could not be found: When I run a VBS file, it says: The specified module could not be found Code: 8007007E The VBS file: set A = CreateObject"WScript.Shell" A.Run "Run.bat",0 It works normally before, until last time the machine booted up with something weird "fixing C drive stage 1"...