- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As a confirmation of path, immediately prior to the open that fails insert an OPEN that creates a new output file of unique name "HokusPokus" using the same method to derive the path that you use for the file on the open that fails. Then after the open (creation) of the bogus file, look for it. You may have current drive and/or current directory issues and the creation of the file will help to resolve this.
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you enquoting the file name if it hasdelimiting characters?
Have you verified the working directory?
The "Use Filenames from Command Line (PowerStation)" will hide from you what it uses (selects) from the command line. So you do not know what is being used in the OPEN.
I do not think there is an INQUIRE-like function that returns the file specification of a failing OPEN (that uses the Use Filenames from Command Line) . If there were you could find out what is being used.
What does a call to GET_COMMAND_ARGUMENT return for each argument in the list of arguments? (get more than one argument to ensure you don't have an empty arg)
Hmm... the first argument is number 0 and is the program name (command name). If the OPEN with blank name begins at argument 0 (instead of 1) then your OPEN with blank ("Use Filenames from Command Line")will (attempt to) open the program, and depending on the mode would get a file in use. If you ignore the 1st open error, does the second open get the first file?
Can you independently open the problem file using the return from GET_COMMAND_ARGUMENT? If so, then file an incident showing "Use Filenames from Command Line" is not picking up the (same) argument from the command line in the same manner as does GET_COMMAND_ARGUMENT.
Also call GETWD to get the current working directory
Jim Dempsey

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page