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
26 views

vbs printing script problems

Hi all i got some problems with this vbs script set shApp = CreateObject("shell.application") currentPath = CreateObject("Scripting.FileSystemObject").GetAbsolutePathName(".&...
0
votes
0answers
20 views

How to extract email addresses from a folder using batch or vbs?

How to extract email addresses from a folder which have many text files using batch or vbs? I have found the script but this is for extracting emails from a file. Is it possible to use this for ...
0
votes
0answers
31 views

Start a Python app in a virtual environment, without any extraneous windows

OS: W10 (version "20H2"). I have a PyQt5 project which runs in a Python virtual environment. At the moment I run it with a .bat file like this: call pyve D: cd "\My Documents\software ...
0
votes
1answer
77 views

how to copy folder\subfolder\files to program files directory with batch script inside the folder

:: BatchGotAdmin :------------------------------------- REM --> Check for permissions IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" ( >nul 2>&1 "%SYSTEMROOT%\SysWOW64\...
2
votes
1answer
34 views

How to automate vb script

I have this code: Sub NewYearData() Dim wb1 As Workbook, wb2 As Workbook Dim r1 As Range, r2 As Range Dim addy As String, sh As Worksheet Dim shName As String Set wb1 = ...
0
votes
1answer
58 views

Use VBS To focus on a specific process without process title or PID

I have a VBScript that should work to focus a given process (taken from here): Dim ObjShell :Set ObjShell = CreateObject("Wscript.Shell") ObjShell.AppActivate("Notepad") But ...
0
votes
0answers
10 views

Creating shortcut and send it to a predetermined destination hard coded

Anyone help with this batch file. I have made a couple of alterations and it works fine. However I want to change it so that it makes the shortcut in a folder of my choice that is coded into the batch ...
0
votes
0answers
25 views

is there any VBscript to remove single letters from entire column except the word

example: David A Horton after the vb script it will be like David Horton single letter like A will be deleted from entire column i tried this code Public Function CellSort(cellule As Range) As String ...
0
votes
0answers
35 views

Robocopy started hidden with vbs script not showing exit codes in Task Scheduler

Trying solutions here and here works fine, except in Task Scheduler Last run result always shows as The operation completed successfully. (0x0) instead of 0x2 or 0x3 without vbs: Is it possible to ...
0
votes
1answer
38 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
1answer
31 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
1answer
28 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
0answers
22 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
0answers
38 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
3answers
120 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
0answers
338 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 "...
2
votes
1answer
184 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
1answer
52 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: (\\...
1
vote
2answers
692 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
1answer
79 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
1answer
101 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
3answers
99 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
4answers
5k 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 ...
0
votes
0answers
28 views

How to Stop auto_switch tab script when the user is now active and not in idle mode

How can I stop the auto_switch tab script when I start moving the mouse or if I am active and not in idle? Is there an additional script I can use? Here's the script I've tried using: Option Explicit ...
1
vote
1answer
373 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 ...
3
votes
2answers
74 views

On Startup this message pops up : “how do you want to open this .vbs file”

I got my laptop back from a friend who might have put a vb script to prank to me or something I deleted the script right away, but now how do you want to open this .vbs file message pops up every time ...
2
votes
3answers
215 views

Sort Large amount of files into equally sized folders (windows)

I have about 15000 zip files with a total size of just over 10 gb that need to be sorted into folders that should not exceed 200 mb. (none of the files are larger than 40 mb and most of them sub 1mb) ...
2
votes
1answer
134 views

command to open dialoge box

Running Windows 10 Pro here. I am using a simple script that acts as a shortcut to my Windows game controller configuration, but I always have to manually navigate to the 'properties' button in the ...
2
votes
2answers
399 views

How to run psexec minimized from a VB script (VBS)

When you do ... Set WshShell = CreateObject("WScript.Shell") Call WshShell.Run("psexec -u administrator -p pw1234 cmd /c ipconfig > C:\Output.txt", 2, True) ... you see for a short time the ...
0
votes
0answers
12 views

Keep updates with a vbscript on hta: list folders from a remote computer

I'm writing a little hta to keep some updates and their records and I'm desperate to find a way to list subfolders on a remote folder and output in html with a button to "rollback" (copy the ...
2
votes
0answers
34 views

Is there a way to find out what's exactly executing the Windows Script Host? [duplicate]

So, long time ago I got a malware from a pendrive, it cloned a directoy on my system32 folder and attempted to do bitcoin mining on my pc. After that, every new pendrive connected to my pc would also ...
0
votes
0answers
17 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 ...
1
vote
0answers
590 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 ...
2
votes
0answers
46 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 ...
1
vote
2answers
218 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
86 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
283 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 ...
2
votes
1answer
3k 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
472 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
85 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
329 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
3k 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
2k 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
117 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
78 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
1answer
1k 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
129 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
1k 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
60 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
73 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://...

1
2 3 4 5
9