Re: command_line() bug in DOS interpreter

new topic     » goto parent     » topic index » view thread      » older message » newer message

> 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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu