VBScript (Visual Basic Scripting Edition) is an interpreted scripting language developed by Microsoft that is modeled on Visual Basic.
0
votes
0answers
3 views
Decoding URL encoded UTF-8 strings in VBScript
I need to URL decode a string in a VBScript. The string may contain Unicode characters which are encoded as multiple bytes as per UTF-8. So for example "Paris%20%E2%86%92%20Z%C3%BCrich" would decode ...
0
votes
2answers
12 views
pass value from vbscript to batch
I have two files: batch.bat and vbscript.vbs. The .bat file contains a loop where I need to call the .vbs, passing to it 2 arguments. The .vbs file contains a function with 2 arguments( the arguments ...
1
vote
2answers
10 views
Azure: Unable to start cloud service running vbs startup task
For some specific purpose, I need to install some fonts on the instances. It comes as no surprise when I choose StartUp Task to accomplish that goal. I've configured the Service Definitions as below:
...
0
votes
1answer
13 views
Error VBS script property
I changed the properties of a VBS file to run with cmd, but now the "open with" option has gone from the right-click menu.
How can I set it back to windows vbs script?
1
vote
0answers
22 views
is is possible to load an xml file, modify a parameter and then save it as a text file?
I have a program which is in xml format.
<fciv>
-<FILE_ENTRY>
<name>e:\logs3\database1.txt</name>
<MD5>0rxJSXF5tCO3pAk3IcSJBA==</MD5>
</FILE_ENTRY>
...
1
vote
2answers
16 views
VBScript Array Of Strings - Error 800A000D Type Mismatch
I'm having trouble processing a Variant array of strings, returned by a call to method in AutoCAD. The returned array looks to be kosher, but when I try to reference elements in the array, or even ...
0
votes
2answers
21 views
batch script to delete and replace files in multiple locations
What I am looking to do is create a batch file to replace teh cert8.db file in a users application data folder as well as insert a line of text into one of the prefs.js file. Normally this would be ...
1
vote
2answers
23 views
How to add to an array from within a function in VBScript?
I'm having trouble writing a function that will output an array of records. What I am attempting to do is call a function that gets all the records in a table and will create a multi-dimensional array ...
0
votes
2answers
17 views
VBS Script to locate all files of certain extensions and copy them to a specific destination
I'm making a project out of creating a script to use at work to automate one of our processes.
I'd like the script to check an input for username to search the specified user profile path for any ...
0
votes
1answer
15 views
How do I get the image box to not display if the src is empty/null?
I have a website that pulls data from the database for text and pictures that go with the text. Here is the code in question:
<img alt="Newsroom Photo" src="img/NewsImages/<%= picturefile ...
0
votes
0answers
11 views
RadGrid Header outside of grid when scrolling
When using a RadGrid I have the scrolling property and frozen columns on 2 and when scrolling to the right, my table headers, after the two frozen ones, start to display at the very top of the page. ...
0
votes
0answers
12 views
Return registry key value to copy files to directory
Does anyone know hoe to return the value of a registry key of which I know the location of the key so that I can use it to copy a file to the installed directory? I know where the registry key is that ...
0
votes
0answers
10 views
php-cgi keeps shutting down on windows
I am running Windows 8 with Nginx as a web server, and php as my language. I created a vbs script to easily start php-cgi, and it looks like this:
Set objShell = WScript.CreateObject("WScript.Shell")
...
0
votes
0answers
10 views
WIndows Firewall - removing rules based on Wildcard
How would one remove some Firewall rules from the Windows Firewall (2008/Vista & 2012/7) based on a wildcard using VBScript?
ie netsh advfirewall firewall delete rule name="test*" - if this ...
0
votes
0answers
13 views
JoinDomainOrWorkGroup not working
Set objNetwork = CreateObject("WScript.Network")
strComputer = objNetwork.ComputerName
Set objComputer = _
GetObject("winmgmts:{impersonationLevel=Impersonate}!\\" & _
strComputer ...