About 8,810,000 results
Open links in new tab
  1. parameters - Can I pass an argument to a VBScript (vbs file …

    You can use WScript.Arguments to access the arguments passed to your script. Calling the script: cscript.exe test.vbs "C:\temp\" Inside your script: Set File = …

  2. VBScript - How to make program wait until process has finished?

    B - myScript.vbs ~~~~~~~~~~~~ myScript.vbs opens up the first 3 arguments which are Excel files. One of them is a *.xlsm file that has my VBA macro. myScript.vbs then uses the 4th …

  3. vbscript - To keep screen active (without locking) in Windows …

    Sep 10, 2018 · 4 A simple vb script will help you resolve this. Create a .vbs file and paste the below code

  4. Run Excel Macro from Outside Excel Using VBScript From …

    Apr 19, 2012 · I'm trying to run an Excel macro from outside of the Excel file. I'm currently using a ".vbs" file run from the command line, but it keeps telling me the macro can't be found. Here is …

  5. Getting current directory in VBScript - Stack Overflow

    Apr 22, 2013 · If you drop a file onto your vbs file (launcing the script in WScript with arguments), then the working dir will be C:\Windows\System32 (!) (even if the dropped file is in the same …

  6. How to run a file using VisualBasicScript (.vbs) - Stack Overflow

    Jun 5, 2009 · How can I run a file with VisualBasicScript (.vbs)? The file is 'file.bat' and it's located in the same dir as the .vbs.

  7. vbscript - Saving notepad file as a .vbs - Stack Overflow

    Jul 27, 2015 · I'm trying to save some code in Notepad as a .vbs file but for some reason Notepad keeps saving it to my desktop as a .txt, so I can't run the program. I've tried every way of …

  8. VBScript to open a dialog to select a filepath - Stack Overflow

    At present I am opening a file with my vbscript as follows: strFile = "C:\\Users\\test\\file.txt" Set objFile = objFSO.OpenTextFile(strFile) I would like to change this so that a file can be selected/

  9. How to run VBScript from command line without Cscript/Wscript

    Apr 15, 2014 · WScript "D:\VBS\Converter.vbs" Now I would like to execute above VBScript without Cscript or Wscript command by simply typing the name of VBscript name i.e. …

  10. Windows Task Scheduler Doesn't Run VBScript - Stack Overflow

    The .vbs file is running invisibly, which is a consequence of running it with the 'logged on or not' option. You will not be allowed to interfere with a user using the computer, which means you …