Advice
0 votes
9 replies
149 views
Why does this vb script not do what I am expecting it to do?
I wrote this simple script to open the app mentioned and then close it using Alt+F4. (The app is set to minimise to the system tray when closed). I added the sleep command (and made it longer too) - ...
- reputation score 23
Score of 1
0 answers
140 views
Trouble making Task Scheduler run my VBScript
I have a VBScript below that opens an excel workbook and runs the VBA script inside that will check and order the tools that calibration dates are either out or due in the next month and then email me ...
- reputation score 55
Score of 0
0 answers
98 views
How to make command window run minimised in VBScript?
I have these lines of script, which run a batch file (to rename every file in the folder with random digits): Set objShell = WScript.CreateObject( "WScript.Shell" ) objShell.Run(""&...
- reputation score 23
Score of 0
2 answers
110 views
How do I clear a stream?
I want to replace a text file's content. Set stream = CreateObject("ADODB.Stream") stream.Mode = 3 stream.Type = 2 stream.Charset = "UTF-8" stream.Open stream....
- reputation score 305
Advice
0 votes
6 replies
116 views
Move/Resize application window using windows handle/Process ID
I have been looking for a way to move/resize application windows (AP_Ws) in Windows 11. I have found plenty of information for doing this via the 'title' of the AP_W. However, this does not help me ...
- reputation score 661
Score of -2
1 answer
102 views
How to change locale for a vbs script?
I have a simple zip extracting vbs which I found on another stackoverflow page and used it ZipFile="%CD%\file.zip" ExtractTo="%CD%" set objShell = CreateObject("Shell....
- reputation score 60
Score of 0
0 answers
102 views
How to check if a process is suspended in VBS?
Edit: None, Status or ExecutionState are not implemented so I need an alternative way to check it, but I don't have any clue where I should look. This is what I have: Option Explicit On Error Resume ...
- reputation score 305
Score of 2
3 answers
209 views
Showing VBA macro output in a VBS script
I'm running a VBA macro through a VBS Script: scriptDir = CreateObject("Scripting.FileSystemObject").GetParentFolderName(WScript.ScriptFullName) Set excel = CreateObject("Excel....
- reputation score 2082
Score of 2
1 answer
139 views
Create shortcut to batch file with "cmd /c" in VBScript?
I'm working on a VBScript to create a shortcut link to a batch file (the batch file downloads and launches a frontend Access database copy). The following code technically works but the shortcut link ...
- reputation score 35
Score of 0
0 answers
124 views
vbScript to open multipe chrome windows and then tile them
I'm trying to open 4 separate chrome windows and then tile them on my screen when I double click a shortcut on my desktop. this code works differently each time I run it. sometimes it works correctly,...
- reputation score 1