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

learn more… | top users | synonyms (1)

0
votes
0answers
13 views

Update windows shortcup lnk

We got a shared folder sharedF where anyone can add file shortcut. Usually, people add the shortcut linked from a network folder sourceF. The problem is that users get sourceF connect to their ...
-1
votes
0answers
8 views

Macro in excel. Macro should start from where it left ( in case of force termination of macro execution)

I need to write a code which satisfies the below criteria, . Macro should start from where it left ( in case of force termination of macro execution), let the control read the value of status ...
0
votes
1answer
26 views

write a text file with the results of a query in vbs

I am fairly new to Visual Basic scripting and have ran into a problem. I am using Notepad++ and right now when I go into the Command Prompt, I can get my query to run successfully, and the results are ...
1
vote
2answers
49 views

How to check the office version remotely?

If you have a scenario where you are an administrator and you have to check your office version, how can you manage this without going to each PC, disturbing the user and checking it locally? Is ...
-2
votes
1answer
12 views

Protecting from malicious zip files with vbscript and file association change

I think it would be useful to pass zip files to a VBscript script that would pop up a warning to the user that they are opening a potentially dangerous file and give them the option unzip or not. I ...
-2
votes
0answers
54 views

Signing in gmail account from vbs file

I am trying to use this vbs file to sign in my gmail account from vbs: On Error Resume Next Const PAGE_LOADED = 4 Set objIE = CreateObject("InternetExplorer.Application") Call ...
-1
votes
1answer
39 views

How to merge two vb scripts into one script

I have 2 vb scripts I'd like to merge in one script. the first one runs a batch file hidden (invisible window). the second one runs the batch file as a different user. what I need is to have one vb ...
2
votes
0answers
17 views

Automate the deletion of all files in a directory from a list of Windows computers

I have hundreds of computers with space issues, and lately, I've just been PSExecing into each computer on this list, and performing a "del /s /q c:\DIRECTORY*" on each machine, which is just ...
1
vote
1answer
41 views

Send separate attachements in Outlook 2010 to separate email addresses

I have separate attachments I want to send out to 70 different email addresses. Is there some kind of macro or script one can run to make this possible instead of having to send each email one by one?
2
votes
1answer
70 views

Set focus onto a specific window using VBScript

Is there a way to set the focus onto a specific window using VBScript ? Window name should be settable by something. (Not an additional program such as AutoIT or so) (Windows 7 Pro)
-1
votes
1answer
54 views

Excel 2013 VBA script needed for [closed]

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
131 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
77 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
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
28 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
58 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
11 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
83 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
33 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
51 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
136 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
31 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
152 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
27 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
16 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
62 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
122 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 ExcelSetup(...
0
votes
0answers
56 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
71 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
58 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 EXE'...
0
votes
0answers
93 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") C:\Users\...
0
votes
0answers
99 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
133 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
74 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
19 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
132 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
206 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
195 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
57 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
38 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
148 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
32 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
505 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 = "%UserProfile%\Desktop\...
0
votes
0answers
30 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
27 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 TypeName(objSel....
0
votes
0answers
101 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
49 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
86 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
66 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
79 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?