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

learn more… | top users | synonyms (1)

-1
votes
1answer
52 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
87 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
29 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?
8
votes
4answers
34k views

Script - How to check if a network path is available and then map it

I would like an screen saver / logon script that checks if a network path is available and then map it to a unit. If it is not available it disconnects/don't connect. Network path is ...
0
votes
3answers
6k views

Run excel macros (vba) from vbscript file

I have a vbs file that pulls information from my database and exports the data to an Excel file (C:\file.csv). Once this is done, I run a series of macros (vba) to format this data. These macros are ...
0
votes
0answers
23 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
45 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 ...
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
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 ...
2
votes
2answers
47 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 ...
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 ...
0
votes
1answer
20 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 ...
3
votes
2answers
83 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
138 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 ...
-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
61 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 ...
1
vote
3answers
9k views

Windows Command line get disk space in GB

I'm trying to create a batch file to pull the total size and free space of the C:\ drive of servers (locally run script). I also need the output to be easily readable, so bytes is not going to work, ...
0
votes
3answers
1k views

How do I activate Win+Tab keys with a VBScript in an effort to launch Task View in Windows 10?

I am trying to set my mouse's middle button to launch Task View in Windows 10 (the replacement for Aero Flip 3D in prior Windows versions). I'm using Logitech SetPoint software, which is capable of ...
0
votes
0answers
73 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
35 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 ...
5
votes
3answers
7k views

How do I configure Firefox through a script?

I'm looking to configure the following Firefox settings through a script (VBS or batch) default home page default search engine disable auto update Is this possible?
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
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 ...
-1
votes
1answer
88 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
48 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
1answer
3k views

Vbscript to search through Microsoft Word files for keywords

I'd like to search through a large number of word files all held in the same folder, searching each document for a keyword. When a document is identified which contains the keyword the script should ...
3
votes
2answers
161 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 ...
0
votes
0answers
102 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 ...
1
vote
1answer
137 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 ...
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 ...
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 ...
0
votes
0answers
87 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
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
306 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
1answer
451 views

VBS unzipping - object required: 'objshell.NameSpace(…)'

I know very little about bash or vbs. I am trying to make a script that will automatically unzip a zip called 'dungeon.zip', which contains a little game I programmed. I want to unzip it to a folder ...
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
2answers
311 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
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
78 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 ...
1
vote
1answer
176 views

append to txt windows

I want to append small snippets of text to txt files. If someone has a system for this, feel free to post it. I'm trying to create it. At ...
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 ...