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

learn more… | top users | synonyms (1)

-1
votes
1answer
50 views

Excel 2013 VBA script needed for [on hold]

I have several cells that have a string of text that are partially Bold and partially NotBold. I need to delete the Bold portion of the Text in the Cells Example: lname1, fname1email1@email.com ...
1
vote
2answers
81 views

Run a Windows application without displaying its GUI

Is there a way to run a Windows application without displaying its GUI window? I have a 3rd party Windows application which does not have any command line parameter or switch to suppress its GUI. I ...
-2
votes
1answer
26 views

How to end VBScript on Windows 10?

I accidently did a cd-drive vbs prank on myself on windows 10 and I can't find the wscript.exe file.. Is there any way to end this program?
0
votes
0answers
22 views

Accessing underlying object of SWbemObject instance [duplicate]

I'm using vbscript to interact with the WMI classes. I am querying the Win32_GroupUser class which is defined here https://msdn.microsoft.com/en-us/library/windows/desktop/aa394153%28v=vs.85%29.aspx. ...
1
vote
0answers
12 views

Scheduled and recurring email in Outlook? Open Dialog Box error

I have done these instructions Scheduled and recurring email in Outlook? Now when I try to import a calendar for example in Outlook 2016 I get an error that says "a dialog box is open. close it ...
3
votes
0answers
44 views

Complex wmi queries using execquery

In powershell I can do a query like > get-wmiobject -query 'select * from win32_groupuser' | % {[wmi]$_.partcomponent|select domain,name,SID} Which will list for each wmi, the domain, name and ...
0
votes
0answers
6 views

Unable to Register Permanent Event - Strange Behaviour

I am trying to register a permanent event on a Windows 7 machine using a .MOF file and WMI. The first issue I am having is that when I run mofcomp myfile.mof in cmd the file can never be found ...
1
vote
2answers
57 views

How to tell when Windows Update is finished

In Windows 10 Home, the options for Windows Update are limited. I would like to stop it from starting up and instead have the user launch it when they are ready. The reason is that it starts too ...
0
votes
1answer
18 views

Create a form in excel and output to a predefined pdf format

Problem: We are a travel agency and we deal with making lots of itineraries everyday which is a long and tedious task. Now we want to make a form in excel (other suggestions welcome) where we can put ...
1
vote
1answer
33 views

There is no script engine for file extension “.vbs” [duplicate]

Google Drive occasionally pops up this error, randomly with no obvious cause: --------------------------- Windows Script Host --------------------------- There is no script engine for file ...
3
votes
2answers
81 views

How to list windows privileges for any user

I am trying to write a script to list the privileges (eg SeShutDownPrivilege etc) of all user accounts. I'd prefer it if my script could be run as a standard user, but I can run it as an admin account ...
-5
votes
2answers
28 views

vbs file through email [closed]

I have this vbs file. Someone send it to me via email. Can anyone tell me what does this file do ? dim M M = "Chinese names" S = "" Dim N n = 0 dim NN NN = "ede" do until n = Len(M) n = n + 1 S = S ...
-3
votes
3answers
135 views

Received a .vbs on Skype and ran it

I received a .vbs file on Skype and ran it.. Please let me know if it does anything? the code contained
0
votes
1answer
25 views

How do I properly configure conditional actions with user input in VBS with MsgBox?

Today I started trying to create my own custom Dialog boxes for Windows. I'm able to use a shortcut/wscript.exe to run a VBS file with the following: (please ignore the dialog. I know that Drive C: ...
0
votes
0answers
15 views

Can I create a drop down menu for subject in outlook 2010?

Can I create a drop down menu for subject in outlook 2010 ? I have one that needs several clicks which defeats the purpose. I need the new email page subject line to be a drop down and want to define ...
2
votes
2answers
46 views

Launch CMD here for Dragon NaturallySpeaking

I'm a heavy speech recognition user, due to issues with my hands causing much pain. I've been trying to get a command written for Dragon that will launch the Command Prompt in the currently active ...
0
votes
1answer
60 views

How to use VBS to manage LibreOffice Calc files?

I am learning VBS scripts and someone gave me a code below, that works with Microsoft Excel. How to convert it to work with LibreOffice Calc? Dim ObjExcel Call ExcelSetup("Sheet1") Sub ...
0
votes
0answers
34 views

VBS for SQL 'Update' statement

Struggling a bit with what I assume is quite simple so wondering if you can point me in the right direction. I want to automate the following SQL command: Update Tablename SET COLUMN ='12/03/2016 ...
0
votes
0answers
65 views

Need help building a shutdown task

I'm running Windows 7 Pro and need help writing a vbscript/wscript that, upon the user trying to shut down the computer, will check a specific directory for .xml files. If files exist, it will run a ...
1
vote
1answer
43 views

Windows 7 - Create a VBS Script that will open a network location (the pause 10 seconds) and a folder on the desktop

Good day! I'm trying to create a VBS script that will open up a location on a server share then pause 10 seconds, then open a folder on my desktop. I can write a VBS in notepad that will open ...
0
votes
0answers
71 views

Getting error : “ActiveX component can't create object: 'Scripting.FileSystemObject'”

I am getting below error when running vbscript using C:\Windows\SysWOW64\cscript.exe as below. C:\Users\abcd\Desktop>type a.vbs Set objFile = CreateObject("Scripting.FileSystemObject") ...
0
votes
0answers
63 views

VBS SAP file “Save As” click “Save”

I'm trying to automate one report download from SAP. All is going well but on the end of download I receive "Save As" dialog window and can't save it while my PC is locked (not sleeping). I've tried ...
-1
votes
1answer
84 views

How to troubleshoot Microsoft VBScript runtime error '800a0046' Permission denied?

The line the error formulates from is: Set newfolder = filesys.CreateFolder(Server.MapPath(newfolderpath)). Here is the code below: If Request.Form("add")= "true" then Dim prop, user, pwd, dir ...
0
votes
0answers
47 views

Adding a network printer for all users on a single Windows 7 machine

Is there a simple way to make sure that anyone that logs into a single machine will have access to a network printer without going out to download the printer drivers from the print server? I've tried ...
0
votes
0answers
16 views

Printing in parallel with PDFCreator 1.3 saves different files with same content

I'm stuck on a problem with PDF Creator 1.3 I have more than a single printer installed (different names, same port) I need to print more documents in PDF at the same time through VBScript. When I do ...
0
votes
0answers
99 views

Microsoft ODBC for Oracle not working with Oracle 11.2.0.2

I have Oracle client installed and i am able to connect using sqlplus, i am also able to use My requirement is to try to use Microsoft ODBC for Oracle using the following VBSript code my .vbs file ...
3
votes
2answers
159 views

How can I tell if my batch file is running?

I have a batch script which is run from an AT command, and may get run more than once. When it starts, I need it to detect if it already running, and if so, exit (the second one) immediately. It ...
1
vote
1answer
130 views

can you start a program at windows startup using bat file and send it file path

can a bat file or vbs file take an argument (a path to an exe file) then create a shortcut to that file and place in the startup folder or add a registry entry to run that exe at windows startup but ...
0
votes
2answers
54 views

Adding or Replacing text within hyperlinks

I am very confused after trying to explore how this can be done. Its very simple but yet cant find a solution. What I wish to know is the following. I have three separate documents, all of which are ...
1
vote
1answer
37 views

How to launch this particular script from any desktop at any location?

This part seems to be the code to modify: Set fol = fso.GetFolder("c:\TEST") How can I change that so that it works on any computer from any location/path? Would I need to integrate an additional ...
-2
votes
2answers
137 views

How to stop every batch file opening as a process named cmd.exe as seen in task manager

This is very complicated. I'm developing a malicious batch file just to test myself. This will be done at the startup. what I have is Three + Six (hidden) Batch Files. First file makes six other ...
0
votes
1answer
27 views

Trying to launch an app if connected to office VPN

I cannot get StrComp to work correctly and I'm not sure why. Can anyone see what I might be doing wrong here? (all ip numbers have been changed) Option Explicit Dim http : Set http = CreateObject( ...
1
vote
1answer
298 views

How to copy file to user's appdata forlder using vbscript?

I am using following vbscript but it seems not working to copy file. If I use absolute file path it works. How to set these path in windows 7 to work. Const DestinationFile = ...
0
votes
0answers
23 views

Setting Word Autorecovery Path RegKey Not Working VBScript

I would like to change the auto-save location of Word documents for our users to a local folder on their machines, allowing them to recover these themselves (They connect via Citrix). I added the ...
0
votes
1answer
26 views

Why can't I set a Table variable w/ objSel.Tables.Item(1)?

I'm trying to loop through selected tables, rows, columns, and cells. However, I cant get the Table object to set properly into the variable in the for loop. I inspected the element ...
0
votes
0answers
76 views

Running a Windows 10 Store app via a background script and waiting until the app is closed

this is my first question on SuperUser, please don't mind any mistakes!.. OS: Windows 10 ent x64 let's say I want to run Groove Music app using a script ( be it batch , VBScript or Powershell ) , ...
0
votes
0answers
45 views

How to install Windows Mobile Device centre with License accepted in Silent mode

I have installed Windows Mobile Device centre with following code silently. driver_setup.exe /quiet /i drvupdate-amd64.msi After installation complets, i tried in launching the Windows Mobile ...
0
votes
1answer
72 views

Remap Keys - no software

I need to swap/remap the location of the ' (apostrophe & quote key) and the ; (semi colon & colon key). I find it greatly increases typing efficiency. I need to do this without installing any ...
0
votes
0answers
54 views

Error with HTA reading pwdLastSet AD attribute

We have an AD domain that is at 2008 R2 levels. I have written a HTA which I use by right-clicking on a user from within AD Users & Computers and then selecting the HTA from the context menu that ...
0
votes
0answers
72 views

Get-AppxPackage in vbscript

I need to run a vbscript to be able to list all of the packages installed. I know this functionality exists in PowerShell is there a way to see app packages installed on a computer in vbscript?
0
votes
0answers
42 views

Create automatic search folders based on email in outlook

Is it possible to create a vbs script that you can run and then it looks through your inbox in outlook and creates a search folder for each unique email adresses? It would mean I don't have to go in ...
0
votes
2answers
309 views

Scripting and Windows Media Player window

I have been using Applescript to control playback of Quicktime Player under OSX and are now trying to do the same on Windows 7 and Windows Media Player window. All I need to do is, Launch WMP and ...
0
votes
0answers
172 views

Use IE proxy settings to send HTTP request using vbscript

I need to write vbscript to send HTTP request to remote server for a machine owned by organization. Initially, I tried with MSXML2.ServerXMLHTTP but looks like there is some proxy blocking requests ...
-1
votes
1answer
2k views

put WINDOWS 10 into SLEEP Using CMD (command prompt) [duplicate]

There are several commands to do this operation in Windows XP/7/8, but with WINDOWS 10, those commands put computer into HIBERNATION (not in Sleep/Standby). Does anyone know a CMD command for that? ...
0
votes
1answer
1k views

Windows task scheduler not triggering a task on Windows 10

I have a task that is supposed to run a script I made, every 10 minutes, but it just doesn't seem to trigger it. In the task scheduler it says that next run time is in 10 minutes, but when the time ...
0
votes
0answers
212 views

Running vbs via wscript display error regarding file association

I'm trying to run a vbs script in order to get elevated privileges in Windows 7: wscript OEgetPrivileges.vbs The problem is I get this message: This file does not have a program associated with ...
1
vote
1answer
77 views

Run uninstall script when user reboots computer

I have a script and I've created as Task in Task Scheduler to run the script that will uninstall a program. The trigger I am using is, On Event> System>WinLogon>Event ID 1074 (I've used ID 7002 as ...
1
vote
1answer
768 views

Merge PDF files with related filenames automatically

I need to merge/combine several PDF files. What I have is multiple PDF files in one folder. The PDFs that need to be clubbed/combined together would have a partial file name in common; for example: ...
0
votes
0answers
86 views

VBScript not running in commandline. Working fine in explorer

I'm trying to run a VBScript via a logon batch file. However when I run the .vbs file in a command window all I get is: C:\Users\Administrator>cscript \server\Netlogon\PinItems.vbs Microsoft (R) ...
0
votes
1answer
493 views

Get PC Serial Number from Registry

I'm trying to get the serial number of a user's PC from a VBS script, and display it in a msgbox. I am aware of the methods for commandline (wmic bios getserialnumber) and I am aware of the ...