vbscript

vbscript calling svnadmin dump

Hi, Running the following vbscript to call svnadmin dump fails (i.e. no dump is being created) Set objShell = CreateObject("WScript.Shell") Set objShellExec = objShell.Exec("svnadmin dump C:\svn_repos > C:\fullbackup") I discovered from another post, http://stackoverflow.com/questions/445121/svn-dump-fails-with-wscript-shell/2400011...

how to automate / script processes like signups .

which is the best tool for this - Automation of signup process to a website , e.g an email signup The tool should be able to take data from an external data file like an excel of csv file this data file would contain data such as first name , last name , username, password etc. basic data required during an email signup . I am imagin...

Find Users E-Mail via SID using VBScript and Active Directory

Hi, I am parsing log messages about changes to user accounts on a windows system. I want to notify the user about the changes so I need to retrieve their personal information (First,Last, E-Mail) from Active Directory. I already found a way to retrieve the username but that is only via WMI and not ADSI: Function FindUser(Message) ...

Running a vbs Sub from C#

Is it possible to execute a specific sub in a vbs file from a c# application? I have looked at creating a Process and then launching it but can not find a way to specify which particular sub in the script file should be executed. Is there a way to specify this or is there a better way of doing it? A vbs could look something like the sa...

VBS Invalid Character

This is a simple VBS script. But when I double-click on this, I get Invalid Character 800A0408 on Line 1, Character 1, which I think is the first "Dim". I am new to VBS--can u tell me what I did wrong? FYI, I have an XP OS and IIS6 Manager installed. ' This script adds the necessary Windows Presentation Foundation MIME types ' to an...

VBS Expected End of Statement

I am a newbie to VBS scripting. Thanks for all your comments! I fixed error 800A0401 now, thanks to your helps. But now I'm getting error 800A0414 on line 13, character 1 "Object required", which refers to line: Set MimeTypesToAddArray = Array(".manifest", "application/manifest", ".xaml", _ Now I understand how line counting works; i...

VBS Runtime error code 800A01B6

I am a newbie to VBS scripting. I am getting above error on line 54, character 5 in script below. This error says "Object doesn't support this property or method: 'MimeMapArray'". And line it is referring to is: MimeMapArray(i) = CreateObject("MimeMap") Can u tell me what I am doing wrong? Here is the script in its entirety. Not...

VBS Runtime error 800A000D - Type mismatch

I am trying to run a .VBS script from Windows Explorer (IIS Manager 6) and am a novice VBScript programming. I am getting above error when running the following code. What am I doing wrong? I just need to generate the IIS MIME types please! Error detail: Line 49, char 5; where line 49: MimeMapArray = MimeMapObj.GetEx("MimeMap") Cod...

CScript and VBS to Remove Line Breaks from Text File

I have a batch file running which spits out a text/html file. The batch file is causing some line breaks in the text file, which do not translate very well in opening the file in an email. I have been trying to read up on CScript to create a vbs script that can read the text file and strip out the line breaks but have had no luck. Any...

Cannot use CreateObject from VB scripts on Windows 7

When I try to create a COM object in VB script on a Windows 7 (64 bit) machine, I always get the following error: "ActiveX component can't create object 'xxx.xxx'. Code: 800A01AD I have applications that use the COM object without any problem. I have tried running the command line in admin mode, no difference. Is there any way to en...

Logon script for a mixed operating system environment

Hi Friends, I have a Active Directory controller on a Windows 2003 server. My users use Windows, Linux, Mac OS, Novell Operating system on client machines. I need to create a login script which is interoperable on all the client operating systems. Any ideas would be greatly appreciated on how to accomplish this. I was searching for a ...

Cannot execute cut-n-paste VBScripts

I have been going mad trying to figure out why my scripts weren't working, until I started copying and pasting sample source code directly from a few websites only to have it fail there as well. I am getting the following error in my VBScripts: C:\temp\vbs\script.vbs(19, 53) Microsoft VBScript compilation error: Expected statement' ...

Associate mount points with local disks in VBscript / WMI

I have a VBscript that outputs various config items about a system. Both hardware and software. I can output disks and their associated partitions. I can output mount points. I do not seem to be able to associate a mount point with a local disk (where it actually is a local disk). I need to be able to do this using VBscript, so as to fi...

Can VBScript determine the most recently modified (or added) file in a particular folder?

Hello, I have a script (or more accurately WILL have a script) that checks a folder and copies a file from this folder to a different location (will run once per day). The fileName that I'd like to copy from, however, changes based on the date. Basically, instead of setting the "strFilePath" to "C:\somePath\somePath2\myFile.txt" I wou...

How can I preform operations on rows in a Tabular form in MS access?

I have a Tabular type Form based upon a SELECT * FROM table type of query in MS access. I would like to: check / select rows in this form iterate through the checked / selected rows ...

how to manipulate command line through vbscript. i want to execute certain set of commands on cmd prompt with the help of vbscript. any help is appreciated. thanks

if anyone could give me a code to access commandline through vbscript. ...

Working with AfxWnd and AfxFrameOfView windows

Hello! As I know, this windows is MFC windows. How can I work with this windows (set text, get text, scroll and so on) using COM technology and any script language, for example VBS? ...

How can I execute consecutive commands from a command prompt?

How can I execute two consecutive commands on the command line with the help of wshshell.exec or wshshell.run in vbscript? For example I need to execute cd C:\a and then winzip32.exe -min -a D:\a. ...

what is function pointers in vbscript?

can some one clarify what is function pointers in vb script ...

how to pass and access command line arguments in VBscript

how to pass and access command line arguments in VBscript ...