rdrunner40
MIS
Hi all
I have a Visual FoxPro Prg shown below .... called spoolfile.prg and i am trying to pass five varible from within a batch file.
see below:
Lparameters VariableOne, VariableTwo, VariableThree, VariableFour, VariableFive
initDir = VariableFour
set defa to (initDir)
FilesToProcess = adir(SpoolFileQty, 'SPL*.0??')
For x = 1 to FilesToProcess
cRunStr='LPR -P '+ALLTRIM(VariableOne)+' -S '+ALLTRIM(VariableTwo)+' '+VariableThree
!&RunStr
** LPR -P VariableOne -S VariableTwo VariableThree && = FileName
next
My Problem is i wish to run this PRG from within a batch file with a command line made up as follows .....
spoolfile.prg (192.9.200.16, ISC1032_:, SPL99999.001, C:\TEMPLATE, SPL99999.001 00000001 To 00000001)
where spoolfile.prg is the name of the PRG and the details within the brackets are the five variable i am trying to pass to it.
i have tried all verions and combinations of this command line from within the batch file and cannot get the variables in the PRG to show the above five details
Yet when i run this the variables are empty ... am i doing something wrong or can u not do what i am trying to do.
I am calling this from within a batch file as the this is and end processing of loads of files.
LPR is a file spooling progam used to send files across our network.
ANy help is greatly received
Yours
Roadrunner
I have a Visual FoxPro Prg shown below .... called spoolfile.prg and i am trying to pass five varible from within a batch file.
see below:
Lparameters VariableOne, VariableTwo, VariableThree, VariableFour, VariableFive
initDir = VariableFour
set defa to (initDir)
FilesToProcess = adir(SpoolFileQty, 'SPL*.0??')
For x = 1 to FilesToProcess
cRunStr='LPR -P '+ALLTRIM(VariableOne)+' -S '+ALLTRIM(VariableTwo)+' '+VariableThree
!&RunStr
** LPR -P VariableOne -S VariableTwo VariableThree && = FileName
next
My Problem is i wish to run this PRG from within a batch file with a command line made up as follows .....
spoolfile.prg (192.9.200.16, ISC1032_:, SPL99999.001, C:\TEMPLATE, SPL99999.001 00000001 To 00000001)
where spoolfile.prg is the name of the PRG and the details within the brackets are the five variable i am trying to pass to it.
i have tried all verions and combinations of this command line from within the batch file and cannot get the variables in the PRG to show the above five details
Yet when i run this the variables are empty ... am i doing something wrong or can u not do what i am trying to do.
I am calling this from within a batch file as the this is and end processing of loads of files.
LPR is a file spooling progam used to send files across our network.
ANy help is greatly received
Yours
Roadrunner