Say "Checking for a configuration file..............."
ok = VRFileExists( "C:\LANSPOOL\CONFIG\CONFIG.DAT" )
IF ok = "1" then do
say "Configuration file found...will process entries"
end
else do
id = VRMessage( VRWindow(), "Please define a configuration file pairing a VSE/ESA LST queue to a LAN SERVER directory. Then restart this program!", "Missing configuration file", "Warning", , WILL DO!, )
return
end
Say "Creating queues"
Call RxQueue "Create", "Getque"
Call RxQueue "Create", "Gotque"
Call RxQueue "Create", "taskque"
Call REFRESH
If Filecnt = 0 then do
SAY "THERE ARE NO FILES IN SELECTED LST QUEUE TO PROCESS"
time = Time( "C" )
SAY time||" ENDING PROGRAM NOW.........................."
path = VRFileDialog(VRWindow(),"LOG TO VIEW?",,"C:\LANSPOOL\Logs\*")
if path = "" then return
time = time( "C")
say path||" LOG FILE viewed at "||time
EPM.EXE path
return
return
/*:VRX IPB_4_Click
*/
IPB_4_Click:
window = VRLoadSecondary( "CONFIG" )
return
/*:VRX PB_10_Click
*/
PB_10_Click:
ok = VRFileExists("C:\LANSPOOL\CONFIG\CONFIG.DAT" )
IF ok = "1" then do
NOP
end
else do
id = VRMessage( VRWindow(), "There is no Configuration File defined. Please add a definition, then restart this program!", "Missing configuration file", "Warning", , WILL DO!, )
return
end
value = VRGet( "SPIN_1", "Value" )
class = "REMOVE VSE/ESA LST CLASS "||value||" ?"
Button.0 = 2
Button.1 = "CANCEL"
Button.2 = "CONTINUE"
Okay = VRMessage("Window1", class, "DELETE VSE/ESA LIST CLASS ENTRY?:", "Q", "Button.",1,1)
call VRMessage VRWindow(), "ITEM DELETED FROM THE CONFIG FILE."
say "CLASS DELETED FROM SCHEDULE FILE: " selected
return
/*:VRX PB_11_Click
*/
PB_11_Click:
ok = VRFileExists( "C:\LANSPOOL\CONFIG\CONFIG.DAT" )
IF ok = 1 then do
NOP
end
else do
id = VRMessage( VRWindow(), "There is no Configuration File defined. Please add a definition, then restart this program!", "Missing configuration file", "Warning", , WILL DO!, )