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

learn more… | top users | synonyms (1)

1
vote
2answers
2k 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
2answers
2k 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
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
785 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
755 views

Windows 8 won't let me run vbscript even though I'm the admin

I wrote a little vbscript that downloads files from a web server. I understand why this would worry the OS but I am logged in as administrator and I want the script to run. The exact error I get is ...
1
vote
1answer
667 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 ...
1
vote
1answer
174 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 ...
1
vote
1answer
162 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
32 views

List last Windows Update - vbscript

Im trying to write a script that reads a list of servers from a text file and outputs the last time a Windows Update was applied. Set fso = CreateObject("Scripting.FileSystemObject") Set file = ...
0
votes
1answer
23 views

Good vb script policy

I have been seeing a lot of cases of the H worm on USB sticks in the past few months. It seems by default a vbs script will run on any computer even if it comes from an outside source (like a USB ...
0
votes
1answer
132 views

Vbscript to search through Microsoft Word files for keywords

I'd like to search through a large number of word files all held in the same folder, searching each document for a keyword. When a document is identified which contains the keyword the script should ...
0
votes
1answer
27 views

VBSCRIPT Search Copy and Paste

I have a list of 4000+ files I need to sort through and Copy. Does any one know a script that I can paste a list of file names and select a file location and have it copy the desired files and paste ...
0
votes
1answer
182 views

Notepad++ issue VBScript code appearing on .html files

Hi guys I am having problems with notepad++. Everytime I close an HTML file there is always a vbscript code that appears below the HTML file. Is this a virus with notepad++? The VB script code does ...
0
votes
1answer
225 views

VB or Batch script to get the MAC address of remote windows CE devices

I'm trying to write a script in vb to open a telnet session to a remote windows CE7 device from a Windows 7 laptop to get the output from ipconfig /all to a text file, then append the contents of that ...
0
votes
1answer
89 views

Converting multiple CAD files to PDF with script (XP)

Going off of what was covered in the thread here I have 2 questions. (I'm using the vbscript version that's in my SendTo folder and works nicely, thank you nixda! ) 1) How can I modify the script to ...
0
votes
1answer
64 views

Looking to remap drives from file VBS

I am very new to VBS. I am trying to make a tool that will help with migration of users for a refresh comming up. I need to grab printers and drive mappings from the current user on a machine, export ...
0
votes
1answer
224 views

Using Excel to capture URL redirects

In Excel is it possible to have a list of URLs in column A and have a column B auto-populate with the URL of the page you get to if you click the link in Column A. (I would like to audit all the ...
0
votes
1answer
250 views

Delete partial matching lines from text file

I have 1 large xml file with lines like - <text file name 5 HD text> <text file name 2 text> <text file name 3 text> <text file name HD 2 text> <text file name 5 text> ...
0
votes
1answer
280 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
1answer
239 views

Applescript to Windows script (VB or java)

I want to have a button in Powerpoint (2003) and have it open iTunes to a specific playlist and start playing using AppleScript tell application "iTunes" play playlist "iTunes DJ" end tell ...
0
votes
1answer
1k views

Launch IE and Wait for it to be closed

I'm trying to use VBScript to launch a web form that requires the user to fill it out and then at the end of it, check whether they completed the form or cancelled out. I do not have control over the ...
0
votes
1answer
250 views

Active Directory VBS Script for Auditing a Presentation

Can anyone help me with this VBS script? Thanks in advance. User logs in to a XP computer and a PowerPoint presentations or web page starts They read through the presentation and then click a links ...
-1
votes
1answer
60 views

Batch Launcher With Variables

This batch launcher was created so that batch files won't launch a command prompt window... Now that i'm adding more variables to it, it's not working... I'm launching the VBScript like so; wscript ...
-1
votes
1answer
327 views

.vbs won't execute anything at all

I created short script to run .bat file on background but when i execute .vbs file, it seems like it is not reading my script at all. .Dos windows pops up and shutdown right away but my batch file is ...
-1
votes
1answer
864 views

PuTTY configuration in a command line

is there a command which configures the PuTTY to open up with "Session Logging" in "Printable output". I could do this manually, but i want to put this in a cammand line which will configure the PuTTY ...
2
votes
0answers
557 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
439 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 ...
1
vote
0answers
464 views

How To Write To The Windows 7 Registry HKLM

I'm writing a vbscript that will write a registry value, to be precise the script should write the value of DisableRemovableDriveScanning value 0 to HKLM\Software\Microsoft\Microsoft ...
1
vote
0answers
62 views

Looking for an application/tool for spidering a website that loads more content upon scrolling

I'm looking for an application/tool that will allow me to spider a website where you have to scroll down vertically repeatedly for the whole page to load. I need to be able to define the starting ...
1
vote
0answers
137 views

hotkey script that copies all the text in my open notepad file to a clipboard and then closes the file

Please. I am new to VBS and may not be saying this right but I need a script with a keyboard shortcut that copies all the text in my open notepad file to the clipboard and then closes the notepad ...
1
vote
0answers
212 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
0answers
153 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 ...
1
vote
0answers
188 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?) ...
1
vote
0answers
393 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 ...
0
votes
0answers
8 views

How can I reply all in outlook inspector window with team mailbox?

I want to design a button which can reply all with team mail box automatically, so I create a replyall sub in Microfoft Visual Basic for Application as below: Public Sub Replyall() Dim oAccount As ...
0
votes
0answers
15 views

Create Home Directories and Assign Access Permissions

I need to creates a home directory and assigns access permissions for all users in the domain. i already know about the power shell script that's been floating around on the web. But my problem is ...
0
votes
0answers
36 views

What VBScripts can be executed via remote text console (SSH or Telnet)?

I am testing via remote login (SSH) a simple VB script (thanks, Igor) from this thread ( Is it possible to download using the Windows command line? ) that just downloads a file to hard disk: cscript ...
0
votes
0answers
104 views

Open Chrome tab without giving Chrome focus

Very specific question: I have a Logitech keyboard with several programmable G keys. I use one of these to open a specific webpage when gaming. However, when I press the button when in the ...
0
votes
0answers
262 views

How safe/unsafe is this method of disabling the ridiculous “open file - security warning”

I created a vbs file and tried to run it and got the silly warning a bit like I see there are a few solutions to it. One is mentioned here In IE- tools..internet options..security tab..custom ...
0
votes
0answers
45 views

Mail gets sent on remote login to a machine only by a particular user by all user

I have written a VBScript that sends mail when a user logs in to a machine: Set objMessage = CreateObject("CDO.Message") objMessage.Subject = "Example CDO Message" objMessage.From = ...
0
votes
0answers
65 views

VBScript error when trying to install Desktop Server

I am using Win 7 Home premium, 64bit. Trying to install Desktop Server for Wordpress development on my laptop. After downloading the .exe for DS, I get the error: Can't find script engine "VBScript". ...
0
votes
0answers
173 views

Check if Num Lock is on in VBScript without Word application

I'm using the following vbs to enable Num Lock. However, this also disabled Num Lock if it were enabled previously. How can I check if Num Lock is enabled before calling SendKeys? Thanks! set ...
0
votes
0answers
37 views

Creating scripts in Outlook 2007

I have a shared mailbox and every person who has access has a category. Every mail received has to be read within three hours of inbox arrival. For this I have created a Field that counts down from ...
0
votes
0answers
146 views

create print server port via command line error Win 8

I need to create a Print Server Port via commandline in Windows 8 Per Google search I should be using prnport.vbs script to do so: cscript ...
0
votes
0answers
251 views

How to change Recycle Bin settings from the command prompt?

Is it possible to change Recycle Bin settings from the command prompt or using VBScript? Specifically, I want to: Select the "Don't move files to the Recycle Bin, Remove files immediately when ...
0
votes
0answers
210 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 ...
0
votes
0answers
167 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 ...
0
votes
0answers
205 views

Outlook 2003 pops up error dialog with “Script Error”, “Line 29”, “Position 129” and no useful info

So I sit at my computer working on something in a totally different program, and spontaneously a dialog box appears with the title "Script Error" and message text: Script Error Line 29 Position 129 ...
0
votes
0answers
489 views

Script for run script on vbs

Hello everybody I have a script on vbscript Dim WSHShell, WinDir, Value, wshProcEnv, fso, Spath Set WSHShell = CreateObject("WScript.Shell") Dim objFSO, objFileCopy Dim strFilePath, strDestination ...