Questions tagged [vbscript]
An interpreted scripting language developed by Microsoft that is modeled on Visual Basic
476
questions
0
votes
1
answer
849
views
How do I make a text to speach vbs script [closed]
I'm trying to make a VBS file that will say what I type my original code didn't work at all what must I do
sapi.voice create box sapi speak("Hello world")
1
vote
1
answer
268
views
How can i append the source folder name to the file copied to another location in vbs?
I have a folder "Documents" with a lot of subfolders. There are files under these subfolders.
My objective is to move the files to one folder location then at some point be able to move them ...
1
vote
1
answer
1k
views
How to get screen resolution and save it to a text file?
I found the following vbs script to get the screen resolution
but I would like to save the result in a text file please help me
Dim HTM, wWidth, wHeight
Set HTM = CreateObject("htmlfile&...
0
votes
0
answers
146
views
How to delete this hotkey/keyboard-shortcut?
I've made a hotkey/keyboard-shortcut that does the same thing when you right-click on the desktop. My goal wasn't that at all. So I want to delete this hotkey, but I don't know how to. The hotkey is ...
0
votes
0
answers
503
views
Run a script with a different user credentials implemented
I have a VBS script that create folders and subfolders.
dim filesys, newfolder, newfolderpath, number, address
number=inputbox("Please enter the request number to create","Request ...
0
votes
3
answers
752
views
Need to create a .bat or .vbs to load at startup using Task Scheduler that shows me a message box asking OK/Cancel to a matter
I need to create a .vbs or .bat file to be used in a task of Windows 10 Task Scheduler (I know it works for .vbs files, dunno if with .bat files is the same).
What I need is simple: I need to see a ...
2
votes
0
answers
3k
views
How to get rid of "this script contains malicious content" error?
I've made a VB script for my startup procedure in Windows 10 that launches an executable. It uses the following structure:
Dim Host
Set Host = CreateObject("WScript.Shell")
Host.Run "...
4
votes
1
answer
1k
views
What are the .wsf , .wsh, and .wsc files?
I understand that C:\Windows\System32\cscript.exe and its GUI version C:\Windows\System32\wscript.exe can interpret VBScript .vbs/.vbe (Microsoft Visual Basic Scripting Edition) and JScript .js (...
-1
votes
1
answer
75
views
Improve the following VBScript share drive output to txt
I'm using the following VBScript to generate current share drive for users
I would like to improve the efficiency of the MappedDrives.txt
Now the output is like this
H: (\\singsfile03\apps)
I: (\\...
2
votes
2
answers
12k
views
How to tell what program is using Windows Based Script Host?
I regularly have Microsoft ® Windows Based Script Host (located at C:\Windows\SysWOW64\wscript.exe) popping in my Task Manager and using a lot of CPU. From my understanding this software is used by ...
1
vote
1
answer
527
views
RunOnce VBscript for new users who have not logged in is behaving in a way other than expected
I have a software application that I must deploy to the enterprise, and part of it relies on having the script run as the user's context. So my deployment script loops through all the HKU SIDs and ...
1
vote
1
answer
332
views
Received a possible malware .vbs on Skype and ran it [duplicate]
I received a vbs file on Skype from someone I thought I knew and against my best judgement I ran it.
Can someone please tell me what it does?
Here's the vbs file code - https://pastebin.com/HPA9DaP1
I ...
2
votes
3
answers
222
views
Batch File How to not print final space in a vbscript
I have a question about something I've been trying to figure out for at least a good hour.
I have a batch file that creates a small VBS script so that I can do some complex calculations (well, at ...
3
votes
4
answers
31k
views
VBS script execution blocked on Windows 10
Posting this question on behalf of GNU Octave trying to troubleshoot execution problems. We've recently had a handful of Windows users install the software and be unable to run the program. Often ...
1
vote
1
answer
953
views
.bat/.vbs script runs manually, but not from task scheduler
I have set up a task in task manager that calls a single .bat file (which then calls a .vbs) to tackle 4 easy steps:
.bat file:
Step 1: Grabs a handful of .xlsx files from over the network and copies ...