Re: command_line() bug in DOS interpreter
- Posted by Greg Haberek <ghaberek at gmail.com> Jan 26, 2006
- 469 views
> When running the following code with ex.exe 2.5, > CMD[2] is missing the path (tested on Windows 98)! That means the file is in the current directory. Here's the Reference Manual example:
-- The user types: ex myprog myfile.dat 12345 "the end" cmd = command_line() -- cmd will be: {"C:\EUPHORIA\BIN\EX.EXE", "myprog", "myfile.dat", "12345", "the end"}
note it just says "myprog" - use current_dir() to obtain the path. ~Greg