18,542 questions
Advice
0
votes
8
replies
112
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) - ...
0
votes
0
answers
93
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 ...
0
votes
0
answers
90
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(""&...
0
votes
2
answers
101
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....
Best practices
1
vote
6
replies
217
views
How do I get started coding HTML Applications (HTA) for game development
I’m interested in learning how to build projects using HTML Applications (HTA), especially because I enjoy older Windows technologies and would like to experiment with making simple games in this ...
-1
votes
1
answer
143
views
How can I get the actual values of a List Box or Dropdown List Option from this HTA to a txt file
I would like to modify this vb script so that i can add the values selected from a drop-down box so that it also sends the data to the text file as for example.
The text file should show for example:
...
Advice
0
votes
6
replies
112
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 ...
-2
votes
1
answer
93
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....
0
votes
0
answers
101
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 ...
-3
votes
1
answer
122
views
How can I calculate the difference between two time strings? [duplicate]
I'm trying to write a VB Script to call a subroutine at sunset (and sunrise) using data extracted from text files produced by my weather station software (Weather Display). I can extract the times OK ...
1
vote
1
answer
259
views
Can't get 7-zip to work via vbscript to calculate a CRC32 for a file with spaces in the filename
I'm in need to generate a CRC32 efficiently from within vbScript. I'm aware of doing this with CRC32 tables and so on, but this is very slow for large files. Therefore I'm using 7-zip.exe with option ...
2
votes
3
answers
204
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....
2
votes
1
answer
135
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 ...
0
votes
0
answers
115
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,...
1
vote
1
answer
142
views
How to add a VBScript command that renames an Excel File with the previous workday's date to existing VBScript code [duplicate]
I already have a VBA string that is used by Task Scheduler to open a certain workbook "ORCA Refresh" every day. It refreshes all sheets then closes the document.
I need to add a command to ...
