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

learn more… | top users | synonyms (1)

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
985 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
61 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
3k 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
2k 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
210 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
205 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
48 views

Attempt to hide console using Command line, Run, Exec and Pipe in VBScript

I'm using Zbarimg which (I believe) outputs its data to STDOUT. So at present, a cmd string within a VBScript executes the command and stores it in a variable, thus: ...
0
votes
1answer
41 views

count number of files in windows 7 search without duplicate ones

I scanned some files in my office in the pdf format and renamed the files and pasted them in different folders. In some cases I pasted the same files with the same names in 2 or more different ...
0
votes
1answer
123 views

File copy using vbs through unknown directory to known directory

Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.GetFile("c:\temp\abc\123.xml") objFile.Copy "c:\programdata\ABC\DEF\XXXXXX\JKL\" I need to move 123.xml to the \JKL ...
0
votes
1answer
28 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
2k 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
102 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
327 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
326 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
117 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
115 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
391 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
416 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
339 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
269 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 ...
2
votes
0answers
799 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
893 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 ...
1
vote
0answers
21 views

Is there an easy way or script to let me email direct from Adobe Illustrator?

I do a lot of artwork and I really wish there was a way i could email direct from Illustrator. I have to manually save as PDF then go and find the file then right click it and do send to > mail ...
1
vote
0answers
938 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
195 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
285 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
223 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
492 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
25 views

Auto close Command prompt

I'm trying to close the the command prompt in vbscript. Code Set oShell = CreateObject("WScript.Shell") Set oWmg = GetObject("winmgmts:") strWndprs = "select * from Win32_Process where ...
0
votes
0answers
30 views

Computer does not stay awake after scheduled task

I have a scheduled task that wakes up the computer to run a batch file. However the computer turns back off after some time. I have my computer set to (never sleep) so after waking up from the task it ...
0
votes
0answers
31 views

What is _Total in WMI output for list of processes?

I am trying to generate a list of processes running on a remote Windows 2008 server along with their CPU/Memory utilization through a .vbs script. Here is the WMI query that I have used: Select ...
0
votes
0answers
95 views

Detect touch hardware using VBScript

I am looking for a way to detect installed touch hardware using VBScript. My script doesn't work. This script is intended to look for a pointing device and echo accordingly. On Error Resume ...
0
votes
0answers
46 views

How can I make Outlook auto redirect emails to email address in body of email?

I would like to redirect a message received from a specific email to another email address. The email address to which the message will be redirected to will never be the same. I have looked through ...
0
votes
0answers
54 views

Script to look for specific folder names, then copy contents to destination path

I'm looking for some help with finding a script, or getting a starting point, as i'm a bit new to scripting. Basically what i'm trying to achieve is the following. A specific folder name, lets call ...
0
votes
0answers
46 views

(oldie not working on Win 8.0 x64?) Command prompt (.vbs) only solution to zip files and folders (batch .bat .cmd)

I worked with Can you zip a file from the command prompt using ONLY Windows' built-in capability to zip files? zip.vbs: Set objArgs = WScript.Arguments ZipFile = objArgs(0) ' Create empty ZIP ...
0
votes
0answers
70 views

Excel Command Button to change Cell Focus

I have a multi sheet workbook I use for staff rostering. Each sheet is for for a 6 month period (eg Sheet 1 is Jan-Jun 2014, Sheet 2 is Jul-Dec 2014) going back to 2010. I have the dates along Row 3 ...
0
votes
0answers
86 views

Terminate/Kill a process before entering Standby

We have a MSAccess based solution that is running on customers computers and is lauchend through a VBScript-script. Due to the network enviroment here, we KNOW that in most of the cases the ...
0
votes
0answers
104 views

VBS - Access LDAP User object with samAccountName

I am trying to write a VBScript that meets 2 requirements: It unlocks a user's account. It can do so and reference the user using the samAccountName. #1 works. However, the below script I have ...
0
votes
0answers
95 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
761 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
363 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
246 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
234 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
228 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 ...
-1
votes
0answers
21 views

In VBS, check if network drive exists and mount it otherwise check until it's available

I need help creating a VBS script to do the following: launch a service called "NAS PM service" net start "NAS PM service" then check if \\192.168.1.1\drive1 exists IF EXIST \\192.168.1.1\drive1 ...
-1
votes
0answers
24 views

Run .bas file in vbscript

I have a .bas file. Sub Add_btn() ActiveSheet.Buttons.Add(505.5, 693, 135, 34.5).Select Selection.OnAction = "Add_btn" Selection.Characters.Text = "Save the Excel" With Selection.Characters(Start:=1, ...
-1
votes
0answers
30 views

Unspecified Error 800A03EC

I have written this code to provide drop down. Rangex5 = "K" &t1 formel_strx5 = "=$BU$1:$BU$" &no_rows With mysheet.Range(Rangex5).Validation .Add 3 , 1 , 1 , formel_strx5 ...