Tagged Questions
0
votes
1answer
31 views
VBS issue for writing a file
Here is what I am trying to do.
The script reads a text file for computer names one at a time.
Checks to see if a program.lnk exists.
If the link exists it copies a new link to that computer/users ...
0
votes
1answer
27 views
Issue with MoveFile method to overwrite file in Destination in vbscript?
I have a vbscript that I have written to move files from a source directory to a destination directory. The way the script works at the moment is that I have a mapping file which is read in (maps id's ...
2
votes
0answers
38 views
VB Script accented characters coming out as “Chinese” looking script?
I'm writing a VB script to replace words in a word doc.
The crux of the code is:
strEuropeanOld="European"
strEuropeanNew="Européen"
I then replace the word:
If InStr(FileText, strEuropeanOld) ...
0
votes
2answers
36 views
VBS Scripting Error
I apologize in advance for my "newness" to vbs. I am trying to run this script to search for all pst files on my file server. At this point, I am getting this error:
searchpst.vbs(6, 26) Microsfot ...
0
votes
1answer
22 views
Microsoft Script Control - Expected “Then”
I've been developing some software to help organize my files better. To do this I have developed a script generator using Microsoft Script Control that then runs on files in a directory and returns a ...
0
votes
1answer
83 views
How to run a VBscript that uses installShield API?
I am trying to create a script that will automate the process of creating an installShield object.
I have selected to develop it with VBScript because the Automation Api is very helpful for vbs ...
0
votes
4answers
75 views
Script to move first 3 characters of filename to the end
I have a directory full of files that I need to rename. For each file, I need to take the first three characters of the filename and move them to the end of the filename before the extension.
So ...
0
votes
2answers
143 views
VBScript to color input text field
I have the below code.
I have an input text field which has an example value grey colored. When clicking on the field, the text is erased and color is set to black. Then, after it finishes some ...
-3
votes
0answers
46 views
Stdin for a vbscript via cscript from cmd? [closed]
I'm a bit stuck on this, but I imagine it's fairly simple. In the following command stdin doesn't seem to get passed to the script, giving "file not found". Can anyone help to correct my command? ...
-2
votes
0answers
43 views
Is it Harm to the system…?
In my web application, I need to confirm whether the user logged out before shutting down the system. I added a VBScript to handle the shutdown. Given the below VBScript I am using, will I do any harm ...
-3
votes
2answers
122 views
retrieve data from html code with vbscript
I have a problem - I have an URL: like (http:://exampl.com/example) and when I open this page in browser I see a table with vertain values. Here is a HTML code:
<p>
<table>
...
1
vote
1answer
31 views
Need to know how to skip over a subfolder in VBScripit
I am horrible at writing VBScript and I have a question that should be pretty simple for anyone who has any experience writing VBScript code. I have a script file that parses the file system starting ...
0
votes
2answers
69 views
Script Works on Win 7, Not on Server 2003
I have a script that is rather simple, it boots up WinSCP and checks the directory for a file that starts with "TSA". If the file exists, it exits, if it does not exist, it transfers over a new file.
...
0
votes
1answer
99 views
call back to C# function from within VBScript run with msscript.ocx
I want to use msscript.ocx to call VBScript from C#, and allow the VBScript code to call back to functions in the C# program.
For example, in the following VBScript code, Clicktext is a custom C# ...
1
vote
1answer
78 views
Windows Scipt to disable minimize and maximize buttons
I found the following vbs script that will open IE perfectly the way I would like. I've seen some javascript for a webpage to disable the min/max buttons, but doesnt really work seemlessly. I'm on XP ...