Questions tagged [vbscript]
An interpreted scripting language developed by Microsoft that is modeled on Visual Basic
470
questions
0
votes
1
answer
1k
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>
...
2
votes
0
answers
2k
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 ...
0
votes
2
answers
5k
views
I need a VB script that executes to update Time Server every time Windows starts up
I need the script to automate Time Server update. I suspect the internal battery that keeps time up-to-date is dead and I don't want to change the battery because I'll discard the laptop soon for a ...
1
vote
1
answer
801
views
Basing one combo box on another
I'm trying to follow the instructions to base one combo box on another in an MS Access 2010 form, and I'm running into some issues.
I've got two tables:
Strategy +----+-------------+
| ID | ...
1
vote
0
answers
353
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 file....
6
votes
1
answer
39k
views
How to disable and enable a USB port via command prompt?
How to disable and enable USB port via command prompt? Or using a batch script or VBScript? The OS is Windows 7.
1
vote
1
answer
2k
views
Change proxy in Firefox with Vbscript?
Is there a way to change the proxy server in firefox using vbscript?
0
votes
1
answer
3k
views
Can't find script engine "OfficeStarter.vbs"
When I boot up my laptop, I have an error message:
Can't find script engine "VBScript" for script "C:\Program Files\WindowsUpdate\OfficeStarter.vbs
I have Windows 7 and Office Starter 2010 as a ...
2
votes
2
answers
10k
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:
...
1
vote
1
answer
268
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 ...
2
votes
1
answer
2k
views
Scripting Bitlocker Decryption of a local hard-drive
In summary: I'm attempting to create a script that unlocks (decrypts) a hard-drive on the Windows 7 Ultimate local machine, then execute a couple of programs afterwards.
I have a small SSD that ...
1
vote
3
answers
21k
views
VBScipt Missing - Windows 7 64bit - Tried Many Solutions but No Luck
When installing some programs or when trying to run .vbs files, Windows informs me it cannot find VBScript.
I have tried everything I can find online, including:
Registering the .dll: regsvr32 %...
0
votes
1
answer
7k
views
Windows 7 (script): Create pre-defined folder structure
Is it possible to create a script, which can be activated through the right-click menu in Windows, which will create a pre-defined folder structure?
Every time we get a new update at my work I have to ...
0
votes
1
answer
715
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
2
answers
20k
views
How do I publish/export Microsoft Access Forms
I developed some forms in Microsoft Access and have yet to connect the forms with the database. However I would like to build and maybe publish the forms so I can view them outside of Access. how do I ...
1
vote
1
answer
1k
views
What is the most robust way to parse domain and username from a user string in vbscript
The user can input a string, so basically 4 options:
username
.\username
localcomputername\username
remotedomain.com\username
What is the most robust way to return the domain and username given that ...
1
vote
0
answers
504
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
1
answer
114
views
Add paths to environsment and launch and app
I want to add some shell actions to execute some apps. These apps require some environment set from complex batch files.
That is, my action should call:
c:\xxx\SetPath.bat
c:\yyy\startApp.exe
The ...
0
votes
4
answers
2k
views
Writing scipt to open multiple applications with a username/password
Is there a way to write and run a script that will enable me to:
Run an app with a username/password
Have that script carry out a few simple shortcut commands (ie connecting to and receiving from a ...
1
vote
3
answers
27k
views
What can I do to re-install VBSCRIPT for Windows 7?
I've had a problem with VBSCRIPT preventing me from updating the McAfee I paid for. It now is preventing me from updating my Sprint cell connection. In addition, since the Sprint update failed, I can ...
0
votes
1
answer
645
views
Getting a Vbscript to run in Task Scheduler
I have a VBSCRIPT file that is used to backup a database once every day at a particular time, this was done using task scheduler but my problem now is this script requires you to press ok or cancel to ...
5
votes
2
answers
7k
views
Silent Java update check
How to have automatic Java updates without jusched.exe process running all the time in the background and with control when a check for the update should occur?
3
votes
2
answers
2k
views
How can I cause Task Scheduler to "fail" if a dialog box returns a certain result?
I'm working on a VBScript to do a weekly reboot of all machines on our network. I want to run this script via Task Scheduler. The script runs at 3:00 AM, but there is a small chance that users may ...
0
votes
2
answers
15k
views
VBScript check if key combo pressed
How can I make a script that waits in a while loop for a specific keyboard combination before doing something? I want to run the script and then have it wait for ALT+CTRL+Q and then execute the rest ...
2
votes
1
answer
1k
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 ...
0
votes
1
answer
1k
views
Script with .vbs (Internet Options\Browsing History\Settings)
I need to create a logon script that changes this option. It can either be a batch file or a .vbs
"Internet Options\Browsing History\Settings\Check for Newer Versions of stored pages"
Anybody have ...
3
votes
1
answer
4k
views
offscrub07.vbs cannot access registry when ran as part of a startup script
I am creating a script to automate a deployment of Office 2010. Office 07 was not installed in a way that provides a clean upgrade path, and in an attempt to do things the right way I am clearing it ...
3
votes
2
answers
4k
views
Programmatically adding entries to Windows 7 Start Menu?
How does one add entries to the Windows 7 start menu for All Users programatically? For example I might want to add the folder MyApps containing a shortcut to myapp.exe and a URL for www.myapp.com.
...
1
vote
1
answer
868
views
Excel VB Convert sheet text to unicode chars
I need to enter a function in an excel sheet that converts all cells values, that are texts, to it Unicode values.
For example I want ü to be ü and so on.
How can I achieve this, is it ...
0
votes
2
answers
2k
views
Select multiple processes to terminate in XP via -.vbs
I am trying to do a script that'll allow me to kill a few processes when I need a maximum of resources. Things I don't mind starting up when I start XP (dropbox, PowerISO, OpenOffice-tray, etc.) but ...
1
vote
3
answers
2k
views
Dump HTML from script
Is there a way to create a script to download the HTML source to a text for html file locally?
For example, if I wanted to archive the HTML of Google.com each day.
I'm up for batch, VBS or PS1 but ...
8
votes
5
answers
29k
views
How do I configure Firefox through a script?
I'm looking to configure the following Firefox settings through a script (VBS or batch)
default home page
default search engine
disable auto update
Is this possible?
0
votes
1
answer
524
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 ...
2
votes
2
answers
615
views
How do I detect if uTorrent is downloading?
I need to write a script that determines whether or not uTorrent is currently downloading something. I'd rather it just be downloading, but if I cannot differentiate between downloading and uploading ...
1
vote
0
answers
266
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
0
answers
908
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 ...
1
vote
1
answer
298
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 would ...
0
votes
2
answers
2k
views
Font rendering fails when code runs under IIS 7.0
I have a legacy ASP website with COM object running under IIS 7.0 on Windows Server 2008. This generally works great but I ran into a rather strange issue lately for which I'm unable to find a ...
0
votes
1
answer
976
views
Adding everyone to local group using vbscript
What would be an alternative in vbscript to
NET LOCALGROUP /ADD "Power Users" Everyone
I know how to add a single group or user but Everyone isn't found.
2
votes
2
answers
6k
views
How can I change the name of the VBScript process, wscript.exe?
I want to run multiple scripts simultaneously, but monitoring them or detecting which has died is difficult as they are all listed as wscript.exe in the process list.
How can I change the name of the ...
0
votes
2
answers
5k
views
vbs - 800A0401 - Expected End of Statement
The bat has
>>%vbs% echo oShellLink.IconLocation = "%1, 0"to produce
oShellLink.IconLocation = ""C:\WINDOWS\NOTEPAD.exe", 0"`
where %1 is a quoted path
However, unless I remove the quotes ...
4
votes
1
answer
2k
views
Windows analog of $1 (PID of the last started process)
How to get on Windows PID of the last started process using WScript.Shell or similar?
I know how to start a process and get its PID:
Set oExec = WshShell.Exec( program )
Set pid = oExec.ProcessID
...
2
votes
1
answer
8k
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 ...
0
votes
2
answers
5k
views
Search for text in web pages given a list of URLs
I have a list of several thousand URLs, and I'd like to search each of these pages for a given word. How can I do this programmatically on Windows, preferably using VBScript or Powershell?
1
vote
1
answer
15k
views
How to reinstall broken VBScript support on Windows XP SP3? [duplicate]
Possible Duplicate:
Input Error: There is no script engine for file extension “.vbs”.
VBScript support (Windows Scripting Host, as far as I understand) seems to be been broken on my ...
2
votes
1
answer
2k
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
1
answer
2k
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, ...
0
votes
1
answer
1k
views
Run VBScript from cmd and send input to dialog
I want to launch a VBScript from a windows xp command promt enter a value to the first box that pops up from the vbsscript.
What I have tried (Want to enter value 2 to the script):
START CScript C:\...
0
votes
1
answer
604
views
Vbs Message Box Alternative [C++]
I'm trying to output a oftstream with a text on it that can run as a Message box
But I would like to know if there is an alternative to do this witouht .vbs.
If it can be done with .exe or another ...
0
votes
1
answer
4k
views
Display Image With No Window
I have a scheduled task that runs on my user machines at startup that currently brings up a 'configuring your station' style message in a command prompt window that is replaced by a vbscript msgbox ...