Nesh has asked for the wisdom of the Perl Monks concerning the following question:
Thanks for your help.' Returns the exitCode of the report creation step Dim objErrorFSO, objLogFile Const ForReading = 1 Const ForWriting = 2 Const ForAppending = 8 sub ProcessReport(prcsType) 'To call different process RUN COMPILE LOAD COPY APPEND depending upo +n the parameter passed. Set objErrorFSO = CreateObject("Scripting.FileSystemObject") If ((prcsType = "LOAD") OR (prcsType = "RUN")) and Trim(strPasswor +d) = "" Then Set WshShell = WScript.CreateObject("WScript.Shell") Set WshSysEnv = WshShell.Environment("SYSTEM") 'Open ActuateServerConnection.ini file wscript.echo(WshSysEnv("AC_CONNECTION_DETAILS")) If objErrorFSO.FileExists(WshSysEnv("AC_CONNECTION_DETAIL +S") & "ActuateServerConnection.ini") Then Set objTextFile = objErrorFSO.OpenTextFile(WshSysEn +v("AC_CONNECTION_DETAILS") & "ActuateServerConnection.ini",ForReading +) Else Call LogMessage("ActuateServerConnection.ini is not + Found") LogMessage("Load Return Code : 1") LogMessage("Quiting the script") LogMessage("Batch file return Code = 1") objLogFile.Close Call CreateLogFile(processType) WScript.Quit(255) End if
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: VBScript to Perl Script
by ww (Archbishop) on Mar 08, 2005 at 20:17 UTC | |
|
Re: VBScript to Perl Script
by dragonchild (Archbishop) on Mar 08, 2005 at 20:05 UTC | |
|
Re: VBScript to Perl Script
by Errto (Vicar) on Mar 09, 2005 at 05:03 UTC | |
|
Re: VBScript to Perl Script
by PodMaster (Abbot) on Mar 09, 2005 at 05:10 UTC |