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

learn more… | top users | synonyms (1)

2
votes
1answer
9k views

How to disable and enable a USB port via command prompt?

How to disable and enable USB port via command prompt? Or using a batch script or VBScript? The OS is Windows 7.
1
vote
1answer
555 views

Change proxy in Firefox with Vbscript?

Is there a way to change the proxy server in firefox using vbscript?
0
votes
1answer
2k views

Can't find script engine “OfficeStarter.vbs”

When I boot up my laptop, I have an error message: Can't find script engine "VBScript" for script "C:\Program Files\WindowsUpdate\OfficeStarter.vbs I have Windows 7 and Office Starter 2010 as a ...
1
vote
2answers
4k views

VBScript Capture StdOut from ShellExecute

I am trying to run the following code snippet as part of a tool to gather and log some pertinent system diagnostics. The purpose of this snippet is to gather the result of running the command: ...
1
vote
1answer
211 views

Change Windows 7 taskbar location automatically based on screen shape or on docking status

My laptop has a 14" widescreen: pretty wide, but not very high. I find it most convenient to have the Windows taskbar located on the left of the screen, since I can spare the width but not the ...
2
votes
1answer
765 views

Scripting Bitlocker Decryption of a local hard-drive

In summary: I'm attempting to create a script that unlocks (decrypts) a hard-drive on the Windows 7 Ultimate local machine, then execute a couple of programs afterwards. I have a small SSD that ...
1
vote
3answers
9k views

VBScipt Missing - Windows 7 64bit - Tried Many Solutions but No Luck

When installing some programs or when trying to run .vbs files, Windows informs me it cannot find VBScript. I have tried everything I can find online, including: Registering the .dll: regsvr32 ...
0
votes
1answer
2k views

Windows 7 (script): Create pre-defined folder structure

Is it possible to create a script, which can be activated through the right-click menu in Windows, which will create a pre-defined folder structure? Every time we get a new update at my work I have to ...
0
votes
1answer
340 views

Parent folder inheriting Child sub-folder or file attributes without creating a new folder and copying

Is there a way to change the folder time and date (the attribute properties) via a DOS Batch file, VBS, PERL or a Powershell script? Example: FOLDER: F1, F2, F3... SUB-FOLDER: S1, S2, S3 ... FILES: ...
0
votes
3answers
3k views

How do I publish/export Microsoft Access Forms

I developed some forms in Microsoft Access and have yet to connect the forms with the database. However I would like to build and maybe publish the forms so I can view them outside of Access. how do I ...
1
vote
1answer
253 views

What is the most robust way to parse domain and username from a user string in vbscript

The user can input a string, so basically 4 options: username .\username localcomputername\username remotedomain.com\username What is the most robust way to return the domain and username given ...
1
vote
0answers
291 views

VBScript to detect VSS Exchange Writer State

I need to detect the state of the Exchange VSS Writer service on a given machine. The script will only be executed if Microsoft Exchange 2003, 2007, or 2010 is currently running. Powershell Script ...
1
vote
1answer
83 views

Add paths to environsment and launch and app

I want to add some shell actions to execute some apps. These apps require some environment set from complex batch files. That is, my action should call: c:\xxx\SetPath.bat c:\yyy\startApp.exe The ...
0
votes
4answers
1k views

Writing scipt to open multiple applications with a username/password

Is there a way to write and run a script that will enable me to: Run an app with a username/password Have that script carry out a few simple shortcut commands (ie connecting to and receiving from ...
0
votes
3answers
10k views

What can I do to re-install VBSCRIPT for Windows 7?

I've had a problem with VBSCRIPT preventing me from updating the McAfee I paid for. It now is preventing me from updating my Sprint cell connection. In addition, since the Sprint update failed, I can ...
0
votes
1answer
418 views

Getting a Vbscript to run in Task Scheduler

I have a VBSCRIPT file that is used to backup a database once every day at a particular time, this was done using task scheduler but my problem now is this script requires you to press ok or cancel to ...
4
votes
2answers
4k views

Silent Java update check

How to have automatic Java updates without jusched.exe process running all the time in the background and with control when a check for the update should occur?
3
votes
2answers
931 views

How can I cause Task Scheduler to “fail” if a dialog box returns a certain result?

I'm working on a VBScript to do a weekly reboot of all machines on our network. I want to run this script via Task Scheduler. The script runs at 3:00 AM, but there is a small chance that users may ...
0
votes
2answers
4k views

VBScript check if key combo pressed

How can I make a script that waits in a while loop for a specific keyboard combination before doing something? I want to run the script and then have it wait for ALT+CTRL+Q and then execute the rest ...
2
votes
1answer
216 views

VBScript how to detect hardware plugged in?

I tried searching but I can't seem to be find anything besides USB detection. I want to make a script that detects when the speaker and microphone ports has a device plugged in. Is this possible to ...
0
votes
1answer
545 views

Script with .vbs (Internet Options\Browsing History\Settings)

I need to create a logon script that changes this option. It can either be a batch file or a .vbs "Internet Options\Browsing History\Settings\Check for Newer Versions of stored pages" Anybody have ...
1
vote
1answer
2k views

offscrub07.vbs cannot access registry when ran as part of a startup script

I am creating a script to automate a deployment of Office 2010. Office 07 was not installed in a way that provides a clean upgrade path, and in an attempt to do things the right way I am clearing it ...
3
votes
2answers
3k views

Programmatically adding entries to Windows 7 Start Menu?

How does one add entries to the Windows 7 start menu for All Users programatically? For example I might want to add the folder MyApps containing a shortcut to myapp.exe and a URL for www.myapp.com. ...
1
vote
1answer
645 views

Excel VB Convert sheet text to unicode chars

I need to enter a function in an excel sheet that converts all cells values, that are texts, to it Unicode values. For example I want ü to be ü and so on. How can I achieve this, is it ...
0
votes
2answers
1k views

Select multiple processes to terminate in XP via -.vbs

I am trying to do a script that'll allow me to kill a few processes when I need a maximum of resources. Things I don't mind starting up when I start XP (dropbox, PowerISO, OpenOffice-tray, etc.) but ...
1
vote
3answers
375 views

Dump HTML from script

Is there a way to create a script to download the HTML source to a text for html file locally? For example, if I wanted to archive the HTML of Google.com each day. I'm up for batch, VBS or PS1 but ...
4
votes
2answers
5k 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
250 views

How to program the outlook DLs using vbscript or some other language?

Is it possible to add / remove a user from a outlook Distribution List using a program? I am not referring to the DLs in the local contacts list but the global address book. I have the permission to ...
2
votes
2answers
231 views

How do I detect if uTorrent is downloading?

I need to write a script that determines whether or not uTorrent is currently downloading something. I'd rather it just be downloading, but if I cannot differentiate between downloading and uploading ...
1
vote
0answers
225 views

Shares created via WSHNetwork.MapNetworkDrive are not visible by administrator

I have a script that maps some network drives via WSHNetwork.MapNetworkDrive - but those drives are not visible by processes running as Administrator. Is there any solution to it? (maybe some flag?) ...
0
votes
0answers
242 views

CScript Terminates before completing task

I am using the below with mods but ziping several Gb of info the last command is Wscript.sleep 2000. I have extended this to 20,000 and 200,000 but I use the script vor various diferent sizes. Is ...
1
vote
0answers
498 views

How can I create a VPN connection via a startup script?

I am trying to deploy a VPN connection to all laptops on my Domain via the startup script. It has to be done at startup and not login as the connection has to be available to all users and they don't ...
1
vote
1answer
206 views

Creating Custom Sortable datatypes in excel

I want to define a custom data type in excel 2007, a date range. Basically, it's an array of dates or smaller date ranges like: "{ 01-26-1991 , 01-01-2004 to 12-31-2004 , 12-13-2017 }" which ...
0
votes
1answer
1k views

Font rendering fails when code runs under IIS 7.0

I have a legacy ASP website with COM object running under IIS 7.0 on Windows Server 2008. This generally works great but I ran into a rather strange issue lately for which I'm unable to find a ...
0
votes
1answer
518 views

Adding everyone to local group using vbscript

What would be an alternative in vbscript to NET LOCALGROUP /ADD "Power Users" Everyone I know how to add a single group or user but Everyone isn't found.
1
vote
2answers
2k views

How can I change the name of the VBScript process, wscript.exe?

I want to run multiple scripts simultaneously, but monitoring them or detecting which has died is difficult as they are all listed as wscript.exe in the process list. How can I change the name of the ...
0
votes
2answers
2k views

vbs - 800A0401 - Expected End of Statement

The bat has >>%vbs% echo oShellLink.IconLocation = "%1, 0"to produce oShellLink.IconLocation = ""C:\WINDOWS\NOTEPAD.exe", 0"` where %1 is a quoted path However, unless I remove the ...
3
votes
1answer
1k views

Windows analog of $1 (PID of the last started process)

How to get on Windows PID of the last started process using WScript.Shell or similar? I know how to start a process and get its PID: Set oExec = WshShell.Exec( program ) Set pid = oExec.ProcessID ...
2
votes
1answer
2k views

Force 64bit WScript to run .vbs

I'm trying to run a .vbs script under 64Bit. When I run this script manually it will execute properly, but when launched by something else, it will run under 32bit and won't execute properly. Here's ...
0
votes
2answers
1k views

Search for text in web pages given a list of URLs

I have a list of several thousand URLs, and I'd like to search each of these pages for a given word. How can I do this programmatically on Windows, preferably using VBScript or Powershell?
1
vote
1answer
11k views

How to reinstall broken VBScript support on Windows XP SP3? [duplicate]

Possible Duplicate: Input Error: There is no script engine for file extension “.vbs”. VBScript support (Windows Scripting Host, as far as I understand) seems to be been broken ...
2
votes
1answer
1k views

Set paper size of Zebra TLP 2844 programmatically

I have a lot of Zebra TLP 2844 printers used by domain users. Unluckily by default the paper size is 2" x 4" while I need to have 4" x 3". The first time each user logs on I have to change manually ...
2
votes
1answer
989 views

How can I give a VBS script access to run without opening a security hole in IE?

I'm currently working on an application that basically sits on top of IE. This program is used on Windows XP and Windows 7 laptops in police cars. The program has a number of VB scripts that run, ...
0
votes
1answer
468 views

Run VBScript from cmd and send input to dialog

I want to launch a VBScript from a windows xp command promt enter a value to the first box that pops up from the vbsscript. What I have tried (Want to enter value 2 to the script): START CScript ...
0
votes
1answer
311 views

Vbs Message Box Alternative [C++]

I'm trying to output a oftstream with a text on it that can run as a Message box But I would like to know if there is an alternative to do this witouht .vbs. If it can be done with .exe or another ...
0
votes
1answer
990 views

Display Image With No Window

I have a scheduled task that runs on my user machines at startup that currently brings up a 'configuring your station' style message in a command prompt window that is replaced by a vbscript msgbox ...
3
votes
3answers
2k views

Powershell vs. vbs vs. bat

I need to configure few Windows 7 machines (with a wide variety of tasks - from setting up screensaver, disabling services, adding task schedule entries to setting up IPsec/firewall rules). Since ...
5
votes
3answers
9k views

Windows 7 - VBS Script to change last logged on user

With Windows XP I used to run a VBS script after using a clients computer to set their user account as the last logged on user. Unfortunately the script no longer works in Windows 7. (Resulting in ...
0
votes
2answers
95 views

Is it possible to backup shell folders in XP with VB or WSH script?

I would like to backup shell folders on my XP machine. It is useful for me because when I reinstall XP I can just restore those backed up shell folders. Can you guys get me started or point me in the ...
5
votes
1answer
566 views

Executables in Windows 7 Giving Profane Error Message

Last night I was called by a friend of mine complaining that he'd somehow severely screwed up Firefox . Every time he clicked on the desktop icon, the following error message popped up: When it hit ...