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

learn more… | top users | synonyms (1)

23
votes
7answers
61k views

Delete all files from a folder and its sub folders

I want to remove all files from a folder structure, so I'm left with an empty folder structure. Can this be achieved in either batch or VBScript scripting? I have tried a very basic batch command, ...
8
votes
4answers
33k 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 ...
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?
5
votes
3answers
11k 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 ...
5
votes
1answer
605 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 ...
4
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 ...
4
votes
3answers
5k views

Dismount a usb volume form command-line

How do I unmount a volume (USB flash drive) via command-line or Visual Basic script?
4
votes
2answers
5k 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?
4
votes
1answer
2k 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) ...
3
votes
4answers
413 views

help … virus ? compromised ? (aarama.net)

Help me please identify whether my computer is compromised or not. I'm not yet sure what this is.. I'm still browsing through some JavaScript (my level = beginner) files I found during my ...
3
votes
2answers
1k 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 ...
3
votes
2answers
123 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 ...
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. ...
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 ...
3
votes
2answers
4k views

Windows Script Host Error Dialog Popups in the morning

A few days ago when I resume my computer from sleep mode in the mornings I would see an error dialog from "Windows Script Host" that read: "There is no script engine for file extension ".vbs". I am ...
3
votes
2answers
70 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 ...
3
votes
3answers
10k views

Input Error: There is no script engine for file extension “.vbs”

I keep getting it in command prompt, any idea why and how I may resolve the issue? Windows 7 Ultimate 32-Bit
3
votes
0answers
37 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 ...
3
votes
2answers
40 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 ...
3
votes
3answers
253 views

Temporary Password for Domain Admin

A small non-profit company handling confidential information must grant remote domain admin access to their external IT services provider who manages the entire network, including new PCs, etc... ...
2
votes
1answer
14k 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.
2
votes
2answers
14k views

How to allow VB scripts to run on an admin account

I'm encountering an issue with the VBscripts while I try to run them. I'm working on Windows 8.1 update 1 Enterprise, connected to an Enterprise domain, and I'm logged with a domain account. This ...
2
votes
2answers
294 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 ...
2
votes
2answers
38 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 ...
2
votes
2answers
129 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 ...
2
votes
1answer
770 views

Where in registry is Windows user expiration date or days left?

I have a few scripts that set and get user expiration using VBS... however, I am wondering where this information is stored. Is it in the registry? If so, what key should I be looking for? My VBS ...
2
votes
1answer
1k views

What do the different ping statuses returned by VBS scripts mean?

I have a VBS Script that executes this code strQuery = "SELECT * FROM Win32_PingStatus WHERE Address = '" & Cell & "'" Cell - is the Excel cell with the hostname Some of my results are ...
2
votes
1answer
314 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 ...
2
votes
1answer
6k views

VB script + get permission denied when copy file (on XP)

I have win XP , my target is to copy the file.dbf from local dir to c:\oracle directory ( by VB script described below) The problem is that I get permission denied (from the VB script output) Please ...
2
votes
1answer
401 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" ...
2
votes
1answer
307 views

Move every 3 rows into a column in Excel

Please I need your help. I need to move every 3 rows into a new column. Let's suppose I have this: Ambassade de France S.E. M. Patrice PAOLI 01-420000-420150 Ambassade de France Mme. Jamilé Anan ...
2
votes
2answers
2k views

PDFCreator set “PDF Producer” meta attribute

I am trying to find a way to create a PDF using pdfcreator and set the PDF Producer to something other than ghostscript v*. For some odd reason the program I am piping the Pdf file to will only ...
2
votes
2answers
2k views

How do I associate a file type with a VBScript

This question is a natural follow up to How to run a batch file without launching a "command window"? One can associate for example .txt files with Wordpad by opening the Properties dialog ...
2
votes
1answer
10k views

Windows 8 wscript.exe not running *.vbs files

I've had Windows 8 running fine on my work PC for several months, but today when I booted it up, it would not run my *.vbs logon scripts. There is no script engine for file extension ".vbs". I ...
2
votes
2answers
11k views

VBScript in Windows 7 64bit Scheduled Task - Works with only run when logged in

So basically I have this VBScript that opens up an Excel 2010 instance, run a macro in it and close the spreadsheet. I am calling it using Scheduled Task to automate it. It ran beautifully when I was ...
2
votes
2answers
6k 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: ...
2
votes
1answer
993 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 ...
2
votes
1answer
3k 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 ...
2
votes
1answer
2k views

Checking VBScript for syntax errors without actually running the script

I have a script in VBScript. I'm not sure if it contains any syntax errors or other non-runtime errors. Normally I would just run the script, but I don't want the script to actually run because the ...
2
votes
0answers
165 views

seach for a word in .txt files and write few line into new .txt file

Please help me to create a script to perform task as per described below. i have 2 files. A.txt and B.txt Content of A.txt as per below ITEM name TICKY title nice coffe drink type DRINK ITEM ...
2
votes
1answer
463 views

How do I record in VLC media player on a schedule?

I have an IP stream coming through VLC media player in Window 7, and I would like to automate the process of opening the stream and start recording at a specified time, and stop VLC and the recording ...
2
votes
0answers
1k views

Pin a tile (App or shortcut) to a specified position on Startscreen (Windows 8 / Powershell)

The title is nearly the whole question. I am searching a solution to pin an installed app or desktop application to the windows 8 startscreen. I am in an enterprise environment and the purpose is to ...
2
votes
0answers
1k views

Extracting a zip file via VBScript running as a service

Details OS: Windows 7 UAC: Disabled What: I am running a VBScript that extracts a zip file, and the vbscript is kicked off by Jenkins service. I need to use the VBScript, and I can not use external ...
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 ...
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
1k 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, ...
1
vote
1answer
27 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 ...
1
vote
1answer
1k views

Get Current User Logged on Time (CMD Batch)

OS: Windows 7, Windows 8, Windows 8.1 Using the Windows command line, I can see the current user's logon time using the quser command. This results in more output than I desire, so I'm hoping to use ...
1
vote
3answers
474 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 ...
1
vote
2answers
96 views

Error calling .vbs from .bat

I am currently trying to call a .vbs file from a batch file and it keeps giving me an error. This is my batch file: @ECHO ON cscript "C:\Users\Alex.Newton\Desktop\VBScripts\First scripts\This is my ...