Windows 10: How can you make a vbs script run in the background?

Discus and support How can you make a vbs script run in the background? in Windows 10 Software and Apps to solve the problem; Basically, i have this script :Set WshShell = WScript.CreateObject"WScript.Shell"If WshShell.AppActivate"wordpad" = True thenWshShell.run "cmd.exe"end... Discussion in 'Windows 10 Software and Apps' started by ChickenNuggetLover, Mar 12, 2022.

  1. How can you make a vbs script run in the background?


    Basically, i have this script :Set WshShell = WScript.CreateObject"WScript.Shell"If WshShell.AppActivate"wordpad" = True thenWshShell.run "cmd.exe"end ifThe thing is that, i need it to run in the background for my script to workIf it's possible, i would rather have no command prompt opened, but i won't be picky hahaThanks in advance.

    :)
     
    ChickenNuggetLover, Mar 12, 2022
    #1

  2. vbs login script over vpn keep runing in background

    Greetings,

    we are using a vbs script over VPN to map the network drives for users . the script works well for some users and for other users the script keep hanging in processes background and utilizing the CPU with high speed of fans . please let me know what kind
    of troubleshooting is required to resolve the issue . the script works fine for some users and some users not . we are trying to find a away to force the vbs script to end after sometime to resolve this issue .
     
    MaenAbbadi, Mar 12, 2022
    #2
  3. GPOs not running logon scripts

    Greetings,

    we have an environment of 2 DCs running WS 2008R2 and applying several GPOs. The GPOs that have a user logon script (vbs or ps1) can not run. At the same time, if we run the vbs scripts from a pc on the domain they run successfully. Any suggestions would
    be appreciated!

    Thanking you in advance.
     
    Eleftheria Siachalou, Mar 12, 2022
    #3
  4. How can you make a vbs script run in the background?

    Running a VB Script File Using Windows 10 Task Scheduler

    Please post your current version of the script.

    Note also that I'll be off the air for a whole week, starting this coming Sunday evening. With your response cycle of one reply per day, you are unlikely to solve your problem anytime soon. This is aggravated by you consistenly posting insufficient information
    (e.g. repeatedly not posting your script, not posting numbers of problem lines, taking numerous attempts to post the exported xml file etc. etc.). You need to remember that respondents cannot see your screen.

    Lastly - you are trying to use the Task Scheduler to launch a script to open an Excel file to launch a macro. This is an extremely ambitious task. It is also not a good way to do things. A script can do everything that a macro can, and more, but more simply.
    Forget about the macro. Here are the steps you should take:

    • Get my script going in the foreground.
    • Get it going while scheduled.
    • Write a script that opens an Excel file.
    • Run it in the foreground.
    • Run it in the background.
    • Expand it to manipulate the spreadsheet.
    • Run it in the foreground
    • Run it in the background.
     
    Frederik Long, Mar 12, 2022
    #4
Thema:

How can you make a vbs script run in the background?

Loading...
  1. How can you make a vbs script run in the background? - Similar Threads - vbs script run

  2. can anyone tell what are these scripts running in background?

    in Windows 10 Software and Apps
    can anyone tell what are these scripts running in background?: first it was just 1 and after 5 mins i got these 2 morealso found these running with the same spam like names and on top of that i dont have chrome on my pc...
  3. VBS script malware

    in Windows 10 Gaming
    VBS script malware: I have accidentally downloaded malware onto my computer. It is trying to run RuneGoTOMjbvdo.vbs which i deleted. I get a warning that Windows Script host cannot find the file. I have run Malwarebytes, and frst64. I have also added and enable key to the registry to disable...
  4. VBS script malware

    in Windows 10 Software and Apps
    VBS script malware: I have accidentally downloaded malware onto my computer. It is trying to run RuneGoTOMjbvdo.vbs which i deleted. I get a warning that Windows Script host cannot find the file. I have run Malwarebytes, and frst64. I have also added and enable key to the registry to disable...
  5. vbs script problem

    in Windows 10 Gaming
    vbs script problem: Script: C:\Users\User\AppData\Local\Updates\Run.vbs Line: 31 Char: 1 Error: The system cannot find the file specified. Code: 80070002 Source: null This is popping up on my windows startup. And also my windows defender is not working. Please help....
  6. vbs script problem

    in Windows 10 Software and Apps
    vbs script problem: Script: C:\Users\User\AppData\Local\Updates\Run.vbs Line: 31 Char: 1 Error: The system cannot find the file specified. Code: 80070002 Source: null This is popping up on my windows startup. And also my windows defender is not working. Please help....
  7. How can you make a vbs script run in the background?

    in Windows 10 Network and Sharing
    How can you make a vbs script run in the background?: Basically, i have this script :Set WshShell = WScript.CreateObject"WScript.Shell"If WshShell.AppActivate"wordpad" = True thenWshShell.run "cmd.exe"end ifThe thing is that, i need it to run in the background for my script to workIf it's possible, i would rather have no command...
  8. How can you make a vbs script run in the background?

    in Windows 10 Gaming
    How can you make a vbs script run in the background?: Basically, i have this script :Set WshShell = WScript.CreateObject"WScript.Shell"If WshShell.AppActivate"wordpad" = True thenWshShell.run "cmd.exe"end ifThe thing is that, i need it to run in the background for my script to workIf it's possible, i would rather have no command...
  9. Script running in background?

    in Windows 10 Customization
    Script running in background?: I have a python script that I use to manage devicesfor example lighting that needs to be run at every login. I have put the script in the shell:startup folder, but a black window with my program appears every login. Is there any way to not see the python's black window,...
  10. vbs login script over vpn keep runing in background

    in Windows 10 BSOD Crashes and Debugging
    vbs login script over vpn keep runing in background: Greetings, we are using a vbs script over VPN to map the network drives for users . the script works well for some users and for other users the script keep hanging in processes background and utilizing the CPU with high speed of fans . please let me know what kind of...