Passing File Names w/Paths Via command_line
- Posted by Dave Bunch <bunch1962 at comcast.net> Jun 26, 2007
- 596 views
I am creating a program to emulate a korn shell script I made that uses a parameter file (i.e. *.ini file) that is listed following the program name. The korn shell script -- named 'ver_daily' -- is called in the following way: /prod/data/bin/ver_daily /prod/data/parm/ver_daily.prm The second parm - $2 - is the name of the parameter file the ksh script file gets its parameters from. In Euphoria, how can I provide users with the ability to list a parameter file name along with its path without requiring them to enter back-slashes before each slash? /prod/data/bin/ver_daily \/prod\/data\/parm\/ver_daily.prm Likewise, if the program ran on an NT environment, how could I code with command_line to avoid users having to enter double back-slashes? C:\prod\data\bin\ver_daily C:\\prod\\data\\parm\\ver_daily.prm Dave