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

learn more… | top users | synonyms (1)

-2
votes
0answers
13 views

Detect touch hardware using VBScript [on hold]

I am looking for a way to detect installed touch hardware using VBScript. I have this script ready but waiting for a hardware to be made available for testing. This script looks for a pointing device ...
0
votes
0answers
26 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
1answer
15 views

Unable to install font using VBScript due to exception “Object Required: 'objFolderItem'”

Here is my script based on How do I install a font from the Windows command prompt? Dim WinFontDir Dim SrcFontDir WinFontDir = "C:\Windows\Fonts" SrcFontDir = "..\fonts.test" Set objShell = ...
-1
votes
0answers
29 views

Force Windows Update to check for updates with filters to avoid certain types of updates?

I Need to create a program that will check for and install important updates Would it be possible to have it only create a popup when updates are available? Currently I am using this code to check ...
0
votes
0answers
40 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 ...
-1
votes
1answer
36 views

Need to convert batch logon script to VBScript

We are currently moving from using batch logon scripts to VBScript. How should we write the following lines from our batch file in VBScript to have the equivalent effect? net use p: ...
1
vote
1answer
47 views

Script to scan through several directories, look for a file and copy it to a new name.

Hopefully someone can help me out here. I need to clean up some data on a regular interval but short of doing it manually I haven't come up with a good solution. Here is the flow that I go through ...
-1
votes
1answer
57 views

How can I remove the `qbqjralptr..vbs` worm? [duplicate]

I'm trying to remove a virus from my friend's PC. The virus is called qbqjralptr..vbs & I found it's a worm specified like USB – Dinihou – Houdini Worm.VBScript It seemed easy to remove but I ...
1
vote
2answers
173 views

Writing only first line of the command output in Windows cmd to a file

I want to modify the command somecommand >> file1.txt in a way that only the first line of the command output be saved to the file. How is it possible, what script is needed?
0
votes
1answer
34 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
51 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
0answers
23 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 ...
1
vote
0answers
20 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 ...
0
votes
3answers
839 views

Run excel macros (vba) from vbscript file

I have a vbs file that pulls information from my database and exports the data to an Excel file (C:\file.csv). Once this is done, I run a series of macros (vba) to format this data. These macros are ...
0
votes
1answer
48 views

Get data from another Excel file

I have an Excel spreadsheet that contains a list of usernames Each user will have the following code. I just need to find a way to substitute First.Last with the names in the Excel spreadsheet. There ...
1
vote
1answer
340 views

Changing desktop background depending on the time of day via script Windows 8.1

Hello it is my first time using this website so I hope I am not asking the question in wrong format. Anyways, as the title says I have a similar problem to a thread that was answered a while ago that ...
0
votes
1answer
185 views

Is update.vbe a malicious code?

I found the task "update.vbe" running in my task scheduler, when I checked it's located in "C:\Users\????\AppData\Roaming\origin" and is set to run on logon/ I did some digging and googling around, ...
1
vote
1answer
396 views

Windows 7 - Collect Wireless Signal Strength via Command Line

I'd like to see the wireless signal strength (preferably, via dbm or %) in Windows 7 via command line. Here's what I've tried: 1) VBscript using MSNdis_80211_ReceivedSignalStrength (but only works ...
1
vote
3answers
156 views

Windows file's default action to open with a vbs script?

Don't laugh. I'm in a corporate environment with a locked down desktop. Installing third party apps is not an option. Notepad is mostly okay, the biggest pain though is that it doesn't detect if ...
1
vote
2answers
160 views

Batch command for Searching & Replacing Text in a Text containing non-TXT file

I am working with iMacro JavaScript .js files which are simple unencrypted lines of code-like text. The file contains the following code: var i; for (i = 1; i <= 10; i++) { iimSet("loop", i); ...
1
vote
1answer
63 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
47 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 ...
0
votes
0answers
58 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 ...
-5
votes
1answer
213 views

No error when the vbs code is run on remote computer [closed]

I hoped this vbs code would execute the oShell.run methods on the remote machine. This doesn't seem to be the case but there is no error shown when this script executes. on error resume next dim ...
2
votes
2answers
2k 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
70 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 ...
0
votes
0answers
57 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
81 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 ...
6
votes
5answers
10k 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 ...
-2
votes
1answer
270 views

Macros to parse excel data [closed]

When I am copying the data from putty after queries like ( Select * from tis_zfb where rownum<2; ) the data is getting shrinked, the null values are getting replaced by the values from there right. ...
0
votes
1answer
143 views

WMI Query based on antecedent string

I am trying to map PHYSICAL Disks to mounted partitions and even further into mounted volume letters (C:\ is mounted on partition 0 of disk 0) First I'm using Select * from Win32_DiskDrive to ...
0
votes
1answer
302 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
0answers
58 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 ...
1
vote
1answer
60 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 ...
0
votes
1answer
325 views

How to Replace Words With VBScript Regex and VBA?

what is vbscript syntax for .net: \b[a-z]+\b Hi trying to replace all alpha words in the source. .net regex tester confirms this pattern will find all words: \b[a-z]+\b this: ...
-1
votes
1answer
211 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 ...
0
votes
1answer
26 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 ...
1
vote
2answers
422 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 ...
0
votes
1answer
1k 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
0answers
24 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
78 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
1answer
75 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
249 views

Run script using group policy

I want to show an alert box to all users in the domain at regular intervals (example: show a message box on every 1 hour). How can i possible this using GPO. Already i know how to show log on script ...
2
votes
2answers
700 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 ...
0
votes
2answers
195 views

Windows does not recognize the VB shell

I work on a Windows 2003 server. When I create a VB script on it like test.vbs, I don’t get the typical VB icon. In place of that I get a different icon. Also, when I run the test.vbs, Windows ...
1
vote
1answer
185 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 ...
0
votes
1answer
123 views

Launch VBS script from Run box without specifying “.vbs” extension

I would like to launch a VBS script from the Run box without specifying its file extension. One of these scripts is called "home", located at C:\Program Files\lin2nt\home.vbs In cmd, I can simply ...
1
vote
1answer
129 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
1answer
248 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
46 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 ...