Questions tagged [vbscript]

An interpreted scripting language developed by Microsoft that is modeled on Visual Basic

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

Programmatically trigger a download from within Citrix Receiver

I would like programmatically trigger a download from within Citrix Receiver. More specifically I have a file that is refreshed each day that exists within the Citrix environment. With the HTML ...
0
votes
0answers
14 views

How to remove another debugger so that Visual Studio can debug script

So I messed up and installed a crappy scripting program to debug VBscript before I realized that it could be done with VS. So now, despite uninstalling the other debugger (seems it did not uninstall ...
1
vote
0answers
44 views

Copy cell data from MS Word table to Excel based on value of cell

I have a rather large Word questionnaire. It has several similar irregular (meaning some rows have merged cells and some do not) tables in it. I need to read each table for 3 specific values and take ...
0
votes
0answers
16 views

CC and Sender in Outlook with VBA

I'm using: Private Sub Application_NewMail() End Sub To run some commands on it. How to get CC and Sender fields from newly received mail with this SUB
0
votes
0answers
22 views

How can I divide an excel sheet into multiple files in such a way that each column in the sheet becomes its own file?

I want to divide a sheet with multiple columns into new sheets, each with one column. e.g. City A City B City C 2020-06-01 320.8316345 314.9309082 317.8692627 ...
1
vote
2answers
52 views

Run VisualBasicScript from keyboard shortcut

I've written a bat file to execute a python script, and to avoid popping up of cmd, I'm calling it through a vbs script. Now I need to execute the python script through vbs script but using keyboard ...
2
votes
1answer
52 views

Recurring Message Box VbScript

I have a vbs file whose content is : MsgBox "some thing here",vbOkOnly,"some other thing" I have set it to run periodically using Windows Scheduler. It indeed is running periodically (which i ...
0
votes
0answers
41 views

how to rename a folder in vbs script

I am trying achieve renaming outlook folder around 100+ windows 10 client using below vbs script and nothing happening except (Microsoft VBScript compilation error: Expected end of statement) . Can ...
1
vote
1answer
120 views

How to run VBS code in a batch file?

I know the cscript "filename.VBS" command, but I want to run VBS code within a batch file so I will not have to make a VBS file to do it. This is my VBS code: sub Loading do while brw.busy ...
1
vote
1answer
132 views

VBScript CopyHere Function Stalling

I have a script to extract the contents of a .zip folder that isn't working (code at bottom of post, for reference). I create a destination folder if it doesn't exist, then use CopyHere to move the ...
0
votes
0answers
84 views

generating of sheets per class for Parent-Teacher Meetings

I have to create an Excel spreadsheet for Parent-Teacher Meetings. In the master sheet I will put two columns. The first column is for the name of the teacher, the second column is for the name of the ...
-1
votes
1answer
145 views

How to hide a VBScript in a Word

How can I hide a .vbs file in a document (Word, excel, etc.)? It should also be executed when I open the document. I tried it with the command 'copy' but it didn't execute the script.
0
votes
2answers
547 views

Windows 10: Using Task Scheduler to run a VBScript file?

I am migrating over from Windows 7 to Windows 10. In 7, I ran a VBS file through Task Scheduler that shut down Microsoft Outlook in order to prepare the .pst file for nightly backup. I want to do the ...
0
votes
2answers
625 views

Changing wallpaper using VBS on Windows 10 doesn't work

So I've been trying to use a vbs file to change my desktop wallpaper on Windows 10. The vbs file contains: dim shell Set shell = WScript.CreateObject("WScript.Shell") wallpaper = "C:\Users\mypc\...
0
votes
1answer
61 views

How to extract email:pass using batch or vbs? [duplicate]

I have a text file named file.txt which contains, myname1234@gmail.com: myname1234@gmail.com:password000 secondmail@hotmail.com: secondmail@hotmail.com:qwerty123 philip007@ymail.com: philip007@ymail....
0
votes
0answers
36 views

Is it possible to kill the task through psexec command before it even gets chance to execute?

We have over 100 computers in our gaming network. We have deployed Deep Freeze Enterprise on our machines to control the customers' abuse of PCs. That is well taken care of, but there's another ...
0
votes
0answers
72 views

How to change default input language programmatically at Windows startup

I want to change Default input language programmatically at Windows startup. The reason for that is I have one keyboard layout on my laptop and other on my external (USB) keyboard, which is connected ...
0
votes
1answer
516 views

remove mp4 metadata with script

I want to remove meta data from a bunch of MP4 video files. I would like to do this without remux as that would take a long time. I am opened to a batch/powershell/python/vbscript solution. I have ...
1
vote
1answer
52 views

Is it possible to get a word count of a pdf from the console with MS word?

I often use MS Word to open .pdfs generated by latex just so I can get a quick accurate word count of the document as it is. But it seems like there should be a faster way of doing this if all I am ...
0
votes
0answers
361 views

Open google chrome and change url with vbscript

I want to open chrome with a url. After 10 seconds, it needs to redirect to other url. Dim iURL Dim iURL2 Dim objShell iURL = "http://10.184.165.112/platform-gwt-war/" iURL2 = "http://10.184.165....
2
votes
1answer
54 views

How I can delete all keys that cointain ProgramName?

How to delete all folders(path) that contain key with a name that contain "ProgramName1"? CCleaner and programs like that doesn't help. I google for bat,vbs scripts but they scan only ...
1
vote
0answers
38 views

How to fill new tab form with vbscript on internet explorer?

I am using this vbscript to fill out a form: Option Explicit Dim objIE, ipf On Error Resume Next Const PAGE_LOADED = 4 Set objIE = CreateObject("InternetExplorer.Application") objIE.Navigate("https://...
0
votes
0answers
15 views

VBscripts started under Task Scheduler never exit

I have a number of scheduled tasks that launch bat files which intern runs sever vbscripts in sequence. Most of the time they work, but intermittently the vbscripts hang at completion and never exit. ...
0
votes
0answers
16 views

Why is VBScript slow when it comes to unzipping files?

I know that there are of course going to be some struggles. But I'd love to know what specifically makes it so much slower, compared to a JavaScript equivalent, or just using 7-Zip.
1
vote
2answers
64 views

Packaging a VBScript

I have written a simple VBScript that helps cancer patients manage their drug dosage (specifically Capecitabine - look it up if you don't believe me). Many of these patients are 'older generation' ...
0
votes
1answer
66 views

Shutdown a domain client automatically through server

so this one here is from a noob, please bear with me. So I want to shut down the computers connected to my domain automatically everyday at 4:15 pm. Now I have been snooping around and have found out ...
1
vote
1answer
37 views

7zip will only zip up certain files

I have a script for zipping up old files and deleting them. The script works fine in all other directories but one specific directory will not work. It will attempt to zip it up but end up only ...
0
votes
0answers
61 views

Disable display scaling on high DPI settings from a USB Stick Drive

My question is very similar to other requests for disabling high DPI settings but mine has a bit of a twist. I am using various USB stick drives to enact a script to 'reset' desktops to a certain ...
0
votes
0answers
253 views

Scheduled task only working with user logged on

I'm currently trying to set up a VBS script that would run daily. The scheduled task opens up an Excel workbook, refreshes data coming from 3 different SQL databases, and then prints it as a PDF in a ...
0
votes
0answers
55 views

Compiling thesis chapters in microsoft word

I am used to the Latex typesetting where in writing my thesis, I partitioned my thesis into the various chapters and in the end used the \include keyword to compile all my chapters into the master ...
0
votes
2answers
903 views

How do I make a vbs file delete other files

I have a junk folder that I download stuff to, and every once in a while, I want to clean up the folder by deleting certain files of a certain extension. How would I be able to do that?
0
votes
1answer
288 views

Refresh desktop after registry edit without restarting explorer.exe

I am editing the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell FoldersKey and DesktopValue. The new location does work intentionally once explorer has been restarted, ...
-1
votes
2answers
141 views

i have to open set association of a program from control panel using vb script or powershell

I have used the below script just to see what are the defaults set for internet explorer. Option Explicit Dim oShell, sWinDir Set oShell = WScript.CreateObject("WScript.Shell") sWinDir = oShell....
0
votes
0answers
68 views

Windows script host error

I am getting this error every time I start my laptop. After 2-3 minutes, it always pop up 2 times.  Around 45-60 seconds gap between popups. I don't remember installing anything which could have ...
0
votes
0answers
60 views

VBS file can't get source code

I download malware loveletter.vbs, then I try to use latest version of notepad++to open it, I set ansi and all other encoding, all I get is a lot of meaningless character, but I do notice that is is a ...
0
votes
1answer
359 views

Recursively change DateLastModified property of Folder to match that of file inside

I have a number of folders, each with files inside the folder. The structure looks something like this: Folder.No.1 Folder_No_2 Folder No 3 and the files within are something like: Folder.No.1\My....
0
votes
0answers
112 views

VBS - schedule task + run in hidden

I am trying to create a scheduled task and run in hidden mode (without console) my BAT file that does the processing... can someone help me? Here is one thing that I have tried... enter image ...
0
votes
1answer
90 views

Use .txt logfile to move files into multiple folders

I have a logfile.txt that contains the following lines of text: C:\VIDEO\My Video 1\My Video 1.mkv C:\VIDEO\MyVideo2\MyVideo2.mkv C:\VIDEO\My.Video.3\My.Video.3.mkv and a folder C:\Temp that ...
0
votes
0answers
224 views

.VBS Network drive mapping and removal

I am working on a .vbs script that would check if a drive is already mapped as well as remove all mapped drives then reload drives based on security groups that users are attached to in active ...
1
vote
0answers
214 views

How do I merge videos that have overlapping frames into a video without duplicate frames?

I've nvidia highlights that takes 3 minutes recordings when events happen. If two events happen sooner than 3 minutes then those recorded clips have overlapping frames. I want to take all the clips ...
0
votes
0answers
55 views

Inno setup - Installer doesn't work in the first attempt for a new machine

I have created a simple executable (.exe) file using Inno Setup Compiler 6.0.2 for installing a Windows application. The .exe file calls a vbscript "Setup.vbs" that unzips "Application.zip" file and ...
0
votes
0answers
87 views

Granting permission to domain user not working

I'm converting my VBScript code to use icacls and currently following this tutorial: https://ss64.com/nt/icacls.html. On this part, Grant the user jdoe rights to create, edit and delete files in ...
1
vote
0answers
54 views

Modify recurring text/string in txt file based on matching text/parameter(s)

I have a text file named example.txt, which contains: [{ "Subtitle": { "Search": { "Burn": false, "Default": false, "Enable": false, "Forced": ...
2
votes
1answer
458 views

Executing multiple commands in batch

I have exe file called invis.exe, which is a converted vbs to and exe with this content: CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False Using this I want to ...
4
votes
1answer
762 views

Rename substring of filename based on partial filename match in same folder

I have a folder full of files (.avi and .txt files): 'MyVideo1-MyEncode.avi' 'MyVideo1.avi 16-05-2019 15-41-01.txt' 'My Video 2.avi' 'My Video 2.avi 16-05-2019 16-43-11.txt' 'My Video 3 [Summer]-...
0
votes
0answers
34 views

Assistance with VBScript to backup log files

I am attempting to write a VBScript to backup the log files from a handful of network computers to a shared drive on a network server. This is what I have so far: Option Explicit Const ...
0
votes
0answers
37 views

Constantly look for file, when file exist, run command

FileName = "C:\Users\amrapab\Desktop\Test\remedy\Auto\Open dump 23 Mar.csv" Set FSO = CreateObject("Scripting.FileSystemObject") Do If FSO.FileExists(FileName) Then CreateObject("WScript....
-1
votes
1answer
48 views

getting error “end expected at line 34”

The code is as follows: Set Sapi = Wscript.CreateObject("SAPI.SpVoice") set wshshell = wscript.CreateObject("wscript.shell") dim Input Sapi.speak "Please type, what you want to open?" Input=inputbox ...
0
votes
1answer
25 views

Why does this change the name on mapped drive M and G, not just M

I wrote this vbs (included below) based on the answer here: Override mapped drive name using .bat script? As stated in my title, this code is updating the label for drive M and G, but should only ...
1
vote
0answers
274 views

I wrote this VBS script to copy “Date Modified” from files in one folder to another but have one query

I wrote this VBS code to copy "Date Modified" from files in one folder to another folder. Dim sOriginFolder, sDestinationFolder, sFile, oFSO, oShell Set objShell = CreateObject("Shell.Application") ...

1
2 3 4 5
9