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

learn more… | top users | synonyms (1)

5
votes
3answers
2k views

Delete all Files from Folder and Sub Folders

I'm wanting 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 VBS scripting? I have tried a very basic batch command but ...
5
votes
1answer
534 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
2answers
3k 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?
4
votes
3answers
8k 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 ...
4
votes
1answer
3k 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
3answers
4k views

Dismount a usb volume form command-line

How do I unmount a volume (USB flash drive) via command-line or Visual Basic script?
3
votes
2answers
772 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
2k 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
4answers
8k 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
2
votes
4answers
396 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 ...
2
votes
3answers
1k 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 ...
2
votes
2answers
119 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
1answer
294 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
302 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
4k 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
2answers
3k 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 ...
2
votes
1answer
285 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
597 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
1k 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
1answer
35 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
0answers
628 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
492 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
0answers
1k 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
823 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
4answers
7k 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 ...
1
vote
1answer
6k 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
3answers
309 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
1answer
29 views

how to select floating graphics in word using keyboard shortcut?

In MS Word, floating graphical objects such as these are considered to be on a different layer above the "page" where the text stays: However, to select these floating object I need to manually ...
1
vote
1answer
61 views

Conversion of delimited .Txt file into Excel file [duplicate]

I have a delimited .Txt file containing several fields (separated by spaces) and I want to know how can I copy the entire thing into the MS Excel using any script (JS/VB/DOS Command) which can be ...
1
vote
1answer
77 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 ...
1
vote
1answer
15 views

sen email without qoutes vbs

I use this script to send emails to people I send short messages all the time, as well as updating my rememberthemilk todo's from launchy. When I need to add a new task I just Hit alt+space ...
1
vote
1answer
137 views

VBscript process disappears

A few days ago I first noticed that one of my VBscripts just stopped by itself, a few seconds after starting. Turns out that the wscript.exe process gets killed off about 5 seconds after it is ...
1
vote
1answer
35 views

Delete files with specific string in them

I need to delete files which have the string ST*823 in them. This does not seem to work: for /f "eol=: delims=" %%F in ('findstr /m ST*823 *.txt') do del "%%F" I don't think it likes the * since ...
1
vote
1answer
5k 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 ...
1
vote
1answer
321 views

How can I pass an argument to a batch in shortcut if calling a vbs script prior

I'm using windows and creating a shortcut to call the following. \\myserver\myfolder\inv.vbs \\myserver\myfolder\mybat.bat I have created the VBS script to not show the batch window (run hidden). ...
1
vote
1answer
260 views

Change proxy in Firefox with Vbscript?

Is there a way to change the proxy server in firefox using vbscript?
1
vote
2answers
3k 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
3answers
6k 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 ...
1
vote
1answer
567 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 ...
1
vote
1answer
187 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
2answers
1k 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 ...
1
vote
1answer
10k 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 ...
1
vote
1answer
2k views

Error 800A01AD in VBScript on Windows Vista 64bit when create ActiveX object

I write script in VBScript for converting images. It use ImageMagic ActiveX. I write this script in Windows XP, it's run normaly, the same with Windows Vista 32bit, but in 64bit I have 800A01AD error ...
1
vote
0answers
14 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 ...
1
vote
1answer
112 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 ...
1
vote
1answer
104 views

Need a Excel script to identify email addresses that contain a different variation of the first name of the contact

I have an Excel spreadsheet with 50k+ rows of data, where we are trying to identify within the rows of data where the email address has no match of the first name, etc. We are basically trying to ...
1
vote
2answers
3k views

How to create a desktop shortcut from a batch file

I know there are many posts on this issue but there is a minor twist to what I need to do. I can figure out how to create a shortcut with an argument like this: "C:\Program Files\My App\App.exe" /s ...
1
vote
1answer
949 views

Join to Domain Script - Windows 7

I'm looking for a way to diss-join a machine from a domain and join a machine to a domain via scripts. I searched online and have found the following script that should join a machine to a domain but ...