Search found 54 matches

by jdelatorre@hfinc.com
Thu Jan 24, 2008 3:20 am
Forum: VBScript
Topic: Mask Input
Replies: 8
Views: 3398

Mask Input

Your probably going to have to look at an HTA, or possibly Powershell. Have you checked the ScriptingVault?
by jdelatorre@hfinc.com
Mon Jan 21, 2008 1:11 am
Forum: VBScript
Topic: VBScript to read all XML files within a folder
Replies: 9
Views: 17024

VBScript to read all XML files within a folder

The only Star is Jim. He is usually right 99.9% of the time. Im just a lonely regular member. 8(
by jdelatorre@hfinc.com
Tue Jan 15, 2008 7:04 am
Forum: PrimalScript
Topic: Starting Powershell script causes Crash
Replies: 2
Views: 817

Starting Powershell script causes Crash

Ok, I think i narrowed down the issue to having this line in my profile causing the crash.Add-PSSnapin quest.activeroles.admanagementCommenting this line out results in normal behavior. 8(
by jdelatorre@hfinc.com
Tue Jan 15, 2008 6:48 am
Forum: PrimalScript
Topic: Starting Powershell script causes Crash
Replies: 2
Views: 817

Starting Powershell script causes Crash

Using PrimalScript 2007 pro Ver. 4.5.562When starting a new Powershell script the Editor crashes with no error code. It crashes the same time I suspect it tries to load my PS profile. By turning off "Load Powershell Profiles" option under options does not cause this problem. This starting occurring ...
by jdelatorre@hfinc.com
Mon Jan 14, 2008 1:48 am
Forum: VBScript
Topic: Help with Select Case Construction with root\rsop\
Replies: 10
Views: 5637

Help with Select Case Construction with root\rsop\

If i understand you correctly no you do not. You can create as many "Select Case" statements inside the For Each loop as you like.
by jdelatorre@hfinc.com
Fri Jan 11, 2008 4:25 am
Forum: VBScript
Topic: Control List of Services
Replies: 4
Views: 1310

Control List of Services

I believe your using the "Display name" for the service. You need to use the "Service Name".so for DNS client the Service name is "DNSCache"for Ftp Publishing I think the name is "MSFTPSVC"
by jdelatorre@hfinc.com
Fri Jan 11, 2008 1:41 am
Forum: VBScript
Topic: move and rename folder
Replies: 22
Views: 10554

move and rename folder

This is how I would restructure it. I cant really test this out but it should work. Set objFSO = CreateObject("Scripting.FileSystemObject") strDate = InputBox("What date do you want to process through ERMX?") If IsEmpty(strdate) Then WScript.Quit End If If RegexMatch("^d{4}$",strDate) Then     WScri...
by jdelatorre@hfinc.com
Thu Jan 10, 2008 7:21 am
Forum: VBScript
Topic: move and rename folder
Replies: 22
Views: 10554

move and rename folder

Your gonna have to put the main part of your script into a subroutine for this to work and avoid duplicate code. strDate = InputBox("Type in a date") If IsEmpty(strdate) Then WScript.Quit End If If RegexMatch("^d{4}$",strDate) Then WScript.Echo "Match" ' Call Main Else     Do         WScript.Echo "I...
by jdelatorre@hfinc.com
Thu Jan 10, 2008 6:26 am
Forum: VBScript
Topic: move and rename folder
Replies: 22
Views: 10554

move and rename folder

You want to try to match what the person could type with a given pattern. If that pattern matches what was typed then you want to continue with the rest of the script. If not then warn the user then exit. strDate = InputBox("Type in a date") If IsEmpty(strdate) Then WScript.Quit End If If RegexMatch...
by jdelatorre@hfinc.com
Thu Jan 10, 2008 4:05 am
Forum: VBScript
Topic: move and rename folder
Replies: 22
Views: 10554

move and rename folder

You could use this but I would also write in some string matching to make sure that the user entered no more or no less the required amount of digits and also to make sure they are digits. a simple Regular expression comes to mind. strDate = InputBox("Type in a date") If IsEmpty(strdate) Then WScrip...