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

learn more… | top users | synonyms (1)

0
votes
0answers
9 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
2answers
57 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
1answer
24 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
39 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
29 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
81 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
21 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( ...
0
votes
1answer
29 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
12 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
20 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
37 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
30 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
48 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
35 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
46 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
15 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
182 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
86 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
2answers
251 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
729 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
52 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
40 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
356 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
65 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
256 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 ...
4
votes
1answer
583 views

Run .vbs from Task Scheduler. VBS should execute an .exe via shell

I would not be posting if I had tried the plethora of possible solutions that have been posted about this previously. I have developed a piece of software, which using a .vbs file (exporter.vbs) ...
2
votes
1answer
255 views

How to run a multi-arguments batch file from a vbscript in CMD?

I have a batch file called "ClockTalk.bat" that has 3 arguments: nircmd.exe speak text "Attention it's now %1 %2, %3 Hours remain to the end of the day" -3 i use a vbscript called "HideBat.vbs" ...
0
votes
1answer
45 views

How to create a Key inside the user GUID?

How to create a regitry key inside the user GUID? I need to do this by VBS, it will run on 500 users more or less. Original key, for example: ...
0
votes
0answers
43 views

Translate .bat coomands to .vbs

I need to run this code but without the "black CMD window". Googeing I understood that VBS scripts are "invisible" on startup, so can someone please translate this code for .vbs file? @echo off set ...
0
votes
1answer
111 views

Run a scheduled task that can update the desktop background wallpaper without causing a foreground flash?

I like how certain Windows themes rotate through various images, but I also like to use BgInfo to write out various machine info to the desktop wallpaper image. I created a customized BGI file and ...
0
votes
1answer
79 views

VBscript activeX Internet Explorer object alternative

I need a Linux alternative to browser manipulation. In Windows I would use a VBscript to do this via Internet Explorer object, but in Linux I don't have either of those. Is there any other script ...
0
votes
1answer
79 views

VBS - Getting a cmd invalid syntax error when using wScript .run with a timeout

CreateObject("Wscript.Shell").Run "timeout /t 10 /nobreak && cd C:/Files/MyApp/ && start app.exe", 1, False This is my very simple script: an attempt to initiate a program with a ...
0
votes
0answers
102 views

Running a Windows bat script within the same window in a vb script

I have a VB script that I launch from a Windows command prompt via cscript (so that the VB Script is running within that Window). I want that script to call a bat script so that the bat script runs as ...
-2
votes
1answer
168 views

How can I run this .vbs on another domain computer?

I wrote this VBS that shows Windows key: Set WshShell = CreateObject("WScript.Shell") MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId")) ...
0
votes
0answers
125 views

VBScript Won't run as scheduled task on Windows 7

Very basic proof of concept code below- which is giving me fits. It runs fine if you launch the script from explorer. It runs fine if you schedule it as a task and "run only when logged on." It ...
1
vote
1answer
98 views

Writing file with batch but text is disappearing

I have a problem with writing a file with a batch file. It seems that one character is triggering the echo end like this one: the code is a downloader. C:\ProgramData\Tempfolder\test.vbs ECHO if ...
1
vote
1answer
86 views

Network Connection State on BgInfo

Is there a vbs script or WBI that will show the status of a network adapter such as 'Disconnected', "Connected", 'Authenticating', etc in BgInfo? Thank you in advance.
0
votes
0answers
293 views

Login Batch File Script Not Running VBS Files

I have a single login batch file for my users in group policy user login scripts. It is running when they login, but the vbs files I call from within the batch file do not appear to be. As a simple ...
0
votes
1answer
147 views

(Windows 8.1) Launch a specific software if IP address is 192.168.49.*

I know there's is a way to launch an executable when specific condition are met, but i'm not familiar with programming. Is there a way to launch a software, in my case Skype For Business if my local ...
0
votes
2answers
716 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
48 views

log file for RDP connections to send email?

I was wondering if someone could help expand on this code to have it not only log the RDP connections with the time and date and user but to add the mac address, the external IP, and if possible to ...
0
votes
0answers
125 views

Whitelist VBScript files for Windows Defender

I've got a ton of VBScript files acting as the glue in my custom workflow set-up. Since upgrading to Windows 8.1, I've found Windows Defender to scan the execution of my custom scripts as well. I ...
-1
votes
1answer
67 views

How to create a macro for microsoft word to concatenate first and last name to generate username

I am trying to create a document in MS word that I can use to auto-generate logins and passwords for my users by just entering in a few details. The form looks like this (sample): First Name: John ...
1
vote
1answer
95 views

PsExec: Access is denied

I am trying to run a VBS script on many PC on my network at the same time. I am admin on all of them, but the instruction needs to run under SYSTEM account. I have opted to use PsExec (v.2.11) from ...
0
votes
0answers
105 views

Remove specific value from registry sub key

We need to delete a Security value from CD-ROM drive registry key. The main location is HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE. From there it would depend on the make and model of the CD ...
0
votes
1answer
225 views

Is it possible to make a VBScript which executes a batch script within itself?

I know it sounds strange, but my idea is creating a single text file which contains a VBScript and a Batch Script within it, i.e. if I run that script as a VBScript, it calls itself as a Batch script, ...
0
votes
1answer
302 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 ...
2
votes
2answers
110 views

Stop Windows Defender deleting a legit VB script

I have wrote a little script that will automate downloading and running a program, however when invoking the script from command line, Windows Defender will enter the scene warning user that malware ...
3
votes
2answers
38 views

Send file in color to printer

I know how to send a file to a printer like this: print /d:\\%COMPUTERNAME%\printer file.bmp However this does not print in color. Is there any way to print in color using the command line (or a ...
0
votes
1answer
200 views

Run Excel macros in multiple files and paths

I need assistance to enhance the method I've implemented. Here are the details. I have multiple excel spreadsheets (xls, originally written on Excel 2007 or 2010) that have 3 main macros that I want ...