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

learn more… | top users | synonyms (1)

4
votes
3answers
519 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
22 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
17 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
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 = ...
1
vote
0answers
28 views

Easy way to set up a splashscreen for my Windows app? [migrated]

I am making an app (software) for Windows. To run the app the user clicks on a .vbs file (or a shortcut to it). It takes a while to load up the main screen so I was wondering what's the easiest way to ...
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 ...
1
vote
1answer
19 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
38 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
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 ...
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 ...
1
vote
1answer
40 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
141 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
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
37 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
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
43 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
1answer
90 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
65 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
39 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
68 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
84 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
79 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
29 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
773 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 ...
0
votes
0answers
105 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 ...
-1
votes
1answer
245 views

Error 2738 could not access VBScript run time for custom action [closed]

If you recently removed McAfee antivirus from your laptop machine and after that you started to face this error message "Error 2738 could not access VBScript run time for custom action" each time you ...
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 ...
-2
votes
1answer
237 views

Unity 3D coding language, C# or JavaScript [closed]

Hello to the gaming community. I am a budding game designer, learning to code for the first time in my life. I did learned c++ in school, 8 years back, so I sort of understand the logic when people ...
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 = ...
2
votes
1answer
224 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
264 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 ...
0
votes
0answers
66 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". ...
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 ...
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
1answer
3k views

Delete user profile from command line Windows 7

Frequently I need to delete all of the user profiles on a computer except for two accounts. I would like to have a script that can perform this for me. The script must work for Windows 7. Company ...
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
130 views

VBScript Carriage Returns

I write the following VB script in order to run commands from WIN XP on Linux machine and redirect the output command to out.txt file ( under C:\ ) My VB script I print the /etc/hosts file from Linux ...
0
votes
1answer
170 views

VB sciprt + how redirect output from CMD window to file

I wrote the following VB script in order to run commands from WIN XP on a Linux machine and redirect the output command to out.txt file ( under C:\ ) I don’t understand why output from the command ...
1
vote
1answer
670 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 ...
2
votes
0answers
558 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 ...
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
3answers
404 views

Search .csv from within a batch file

I am looking to create a batch file that will search a .csv for a specific number, and then use the 2nd value in the csv as the input back into the batch file. Example: csv name= IP.csv .csv ...
0
votes
1answer
299 views

Excel - Change font color of a row on double click

I'm trying to change the font color of the row in which the cell is located when I double click it from black to grey, and the opposite when it's already grey. Here is the code I'm trying: Private ...
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
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
1answer
4k views

Windows 8 wscript.exe not running *.vbs files

I've had Windows 8 running fine on my work PC for several months, but today when I booted it up, it would not run my *.vbs logon scripts. There is no script engine for file extension ".vbs". I ...
0
votes
2answers
1k views

Why am I getting a permissions error when adding registry values through VBScript?

I've been trying to run a VBScript file every time my system starts up, and have tried modifying the registry using VBScript to add it to the list of programs to run, but I'm facing a problem with ...
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 ...
1
vote
1answer
4k 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 ...
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 ...