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

learn more… | top users | synonyms (1)

0
votes
2answers
17 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 ...
1
vote
2answers
80 views

Copy all files from a list of folder locations

I have a list of folder locations from which I would like to copy all the contained files at these locations. The list of folder locations are stored on a seperate line within a text file (.txt). All ...
0
votes
1answer
42 views

Script works fine as .wsh, goes berzerk in HTA

I have some code that sends keys to Telnet to manipulate an IR transmitter of mine. The script works fine as a stand-alone WSH script, but as soon as I try to put it in a Sub inside an HTA it goes ...
0
votes
2answers
51 views

VBScript output: formatting to a column (data can vary in length)

I would like to have a batch file that will query for a list of services (DisplayName,State,StartMode), but have them output into a nicely formatted when looking at it in a txt file. Here's what I ...
1
vote
2answers
58 views

Counting specific words within a batch of Word documents

I need a count of the number of times an acronym (e.g. ‘ABC’) is used in a collection of word documents. The acronym is always three letters and in block caps. All the word documents are contained ...
0
votes
1answer
36 views

Batch output filename with datetime

I have a batch file that look like this: set FOLDERTOZIP=c:\myfolder For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b) For /f "tokens=1-2 delims=/:" %%a in ("%TIME%") do ...
0
votes
2answers
135 views

Windows Command line get disk space in GB

I'm trying to create a batch file to pull the total size and free space of the C:\ drive of servers (locally run script). I also need the output to be easily readable, so bytes is not going to work, ...
1
vote
0answers
47 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
0answers
34 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 ...
1
vote
1answer
108 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 ...
0
votes
1answer
52 views

Pass Parameters from vba to vbs

I'm trying to pass arugements to my vbscript from vba. Shell "wscript C:\test.vbs " & strName & fileDir But in the vbs its taking it as one arguement. How to pass two different ...
0
votes
0answers
49 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
1answer
145 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
0answers
36 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 ...
2
votes
2answers
52 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... ...
0
votes
2answers
48 views

New to scripting and need help running powershell script to deploy software. (powershell blocked execution) [closed]

The following script was written for me. My problem is that when our remote deployment system executes the script, Powershell on the local machine will not run the script. It has no problem running ...
0
votes
2answers
96 views

Finding a file with vbs and the open the location folder

is there a way to make a script in vbs (or other) that search in each hard drive partition for a file and then opens the location folder of the file if the file was found? So if I want to find the ...
0
votes
0answers
43 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
1answer
22 views

Writing a script for a multi network student lab to change networks

I work in a university/college and having a problem in one of the labs. At the moment we have a few programs that pull their licences from a licence server. This licence server has no internet ...
0
votes
2answers
482 views

Find active window with VBS script

I need to auto-refresh the desktop every 10 minutes. The only full-working way I found is using this VBS code. Sh.AppActivate "Program Manager" Sh.SendKeys("{F5}") But in this way the active ...
0
votes
1answer
175 views

Display Oldest Email Date and Time with Outlook Script in email body

I'm working on an auto reply in Outlook 2010 using a VBA script so that whenever someone emails me, there's an auto response that responds back with my current unread email count along with the date ...
0
votes
0answers
128 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
49 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
104 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
1answer
227 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
55 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
63 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
199 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
102 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
512 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
48 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
148 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
49 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
26 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
3k 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
85 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
960 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
790 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
2k 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
324 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
235 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
116 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
70 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
75 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
305 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
6k 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
153 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
95 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 ...
12
votes
7answers
24k 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, ...
-2
votes
1answer
323 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. ...