Marconi182
Programmer
I am trying to pass the following parameter from the Batch file to a Rex. File. The problem is that GetYN.REX is not getting the parameter. I have tested it on another computer with the same Object Rexx version and it works, but on my work's computer, it doesn't. I saw this forum, that I guy supposed had the same problem but it was in 2006. Any idea how to fix it?
Batch file
@echo off
@echo Batch file
SET Dir = \Rexx_Code
@echo Test is executing
Pause
C:
CD %Dir%
start C:GetYN.rex "Cleanup Directory?'<Y|N>'"
GOTO CLEANUP%ERRORLEVEL%
GetYN.rex
parse arg '"' Prompt '"'
Pause
do forever
Call CharOut, Prompt
pull Answer
select
when Answer = 'Y' | Answer = 'y' then exit 1
when Answer = 'N' | Answer = 'n' then exit 0
otherwise
nop
end
end
Batch file
@echo off
@echo Batch file
SET Dir = \Rexx_Code
@echo Test is executing
Pause
C:
CD %Dir%
start C:GetYN.rex "Cleanup Directory?'<Y|N>'"
GOTO CLEANUP%ERRORLEVEL%
GetYN.rex
parse arg '"' Prompt '"'
Pause
do forever
Call CharOut, Prompt
pull Answer
select
when Answer = 'Y' | Answer = 'y' then exit 1
when Answer = 'N' | Answer = 'n' then exit 0
otherwise
nop
end
end