Windows 10: VBS

Discus and support VBS in Windows 10 Network and Sharing to solve the problem; How do you make a vbs file open a file? https://answers.microsoft.com/en-us/windows/forum/all/vbs/9897f943-4d77-46e7-aeae-2e27d00f7937 Discussion in 'Windows 10 Network and Sharing' started by SamHallenberg, Aug 19, 2020.

  1. VBS


    How do you make a vbs file open a file?

    :)
     
    SamHallenberg, Aug 19, 2020
    #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, Aug 19, 2020
    #2
  3. IDE for VBS?

    vbs didn't end until powershell was introduced. But it's not completely replaced. As far as I know VS6 doesn't support VBS either, just VB. Will try vbsedit at work tomorrow. See how that works out, can't be worse than notepad*Smile VBS :)
     
    DanTheBanjoman, Aug 19, 2020
    #3
  4. VBS

    Smittychat., Aug 19, 2020
    #4
Thema:

VBS

Loading...
  1. VBS - Similar Threads - VBS

  2. I can't disable VirtualizationBasedSecurity VBS. WHY?

    in Windows 10 Gaming
    I can't disable VirtualizationBasedSecurity VBS. WHY?: My specs: Windows 10 Pro, AMD Ryzen 5000. Joined domain.Please see my screenshot https://i.stack.imgur.com/IqkPO.png1. I tried turn off Memory Integrity in the Window Security panel with admin privilege, it still become on after I restarted my PC. I tried more than 10 times2....
  3. I can't disable VirtualizationBasedSecurity VBS. WHY?

    in Windows 10 Software and Apps
    I can't disable VirtualizationBasedSecurity VBS. WHY?: My specs: Windows 10 Pro, AMD Ryzen 5000. Joined domain.Please see my screenshot https://i.stack.imgur.com/IqkPO.png1. I tried turn off Memory Integrity in the Window Security panel with admin privilege, it still become on after I restarted my PC. I tried more than 10 times2....
  4. I can't disable VirtualizationBasedSecurity VBS. WHY?

    in AntiVirus, Firewalls and System Security
    I can't disable VirtualizationBasedSecurity VBS. WHY?: My specs: Windows 10 Pro, AMD Ryzen 5000. Joined domain.Please see my screenshot https://i.stack.imgur.com/IqkPO.png1. I tried turn off Memory Integrity in the Window Security panel with admin privilege, it still become on after I restarted my PC. I tried more than 10 times2....
  5. windows script host the system cannot find the specified file divi32.vbs

    in Windows 10 Gaming
    windows script host the system cannot find the specified file divi32.vbs: windows script host the system cannot find the specified file divi32.vbs https://answers.microsoft.com/en-us/windows/forum/all/windows-script-host-the-system-cannot-find-the/8f1f4f39-dc32-43e9-b24c-dfe1b35a7ef3
  6. windows script host the system cannot find the specified file divi32.vbs

    in Windows 10 Software and Apps
    windows script host the system cannot find the specified file divi32.vbs: windows script host the system cannot find the specified file divi32.vbs https://answers.microsoft.com/en-us/windows/forum/all/windows-script-host-the-system-cannot-find-the/8f1f4f39-dc32-43e9-b24c-dfe1b35a7ef3
  7. windows script host the system cannot find the specified file divi32.vbs

    in Windows 10 BSOD Crashes and Debugging
    windows script host the system cannot find the specified file divi32.vbs: windows script host the system cannot find the specified file divi32.vbs https://answers.microsoft.com/en-us/windows/forum/all/windows-script-host-the-system-cannot-find-the/8f1f4f39-dc32-43e9-b24c-dfe1b35a7ef3
  8. run vbs is missing how do i fix it?

    in Windows 10 BSOD Crashes and Debugging
    run vbs is missing how do i fix it?: My run vbs file is missing and its always having a pop up when i start my laptop and i were also unable to reseet my pc and the windows security center cant be turned on or its just shows all black and shows nothing and for some reasons i cannot send the screenshots so i will...
  9. run vbs is missing how do i fix it?

    in Windows 10 Gaming
    run vbs is missing how do i fix it?: My run vbs file is missing and its always having a pop up when i start my laptop and i were also unable to reseet my pc and the windows security center cant be turned on or its just shows all black and shows nothing and for some reasons i cannot send the screenshots so i will...
  10. run vbs is missing how do i fix it?

    in Windows 10 Software and Apps
    run vbs is missing how do i fix it?: My run vbs file is missing and its always having a pop up when i start my laptop and i were also unable to reseet my pc and the windows security center cant be turned on or its just shows all black and shows nothing and for some reasons i cannot send the screenshots so i will...