Ticket #44045

Specify working directory for links

Open Date: 2022-03-07 03:55 Last Update: 2022-03-08 00:51

Reporter:
Owner:
Status:
Open [Owner assigned]
Component:
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None
File:
None

Details

(This is an RFD = Request for discussion.)

Same software requires to be run from the actual program directory and not from the current directory.

So, it would be nice, if a user could optionally specify to either change to the program's directory (where the .COM/.EXE is) or any other directory (probably a data directory).

Of course (?), after returning from that program, SvarDOS should restore the previous current directory.

Ticket History (3/3 Histories)

2022-03-07 03:55 Updated by: bttr
  • New Ticket "Specify working directory for links" created
2022-03-07 20:47 Updated by: mateuszviste
Comment

this is a different use case for links I think.

I implemented them with commands like "zip" in mind: a command that needs to access files from any place and varying current working directory.

what you describe is more about a "quick shortcut" I think. Ie. "run my spreadsheet application without needing to go to its directory. I wonder if there is any added value for using links for that, instead of simple BAT file.

2022-03-08 00:51 Updated by: bttr
Comment

Reply To mateuszviste

this is a different use case for links I think.

Yes.

I implemented them with commands like "zip" in mind: a command that needs to access files from any place and varying current working directory.

That's how I use links most times too.

what you describe is more about a "quick shortcut" I think. Ie. "run my spreadsheet application without needing to go to its directory. I wonder if there is any added value for using links for that, instead of simple BAT file.

Yes, what I describe is how shortcuts work in Windows.

Regarding the 'simple' BAT file: It would help, if SvarCOM could support the 'pushd' and 'popd' commands. :-D Otherwise same 'strange .bat file hack' or some external utility would be required to return to the original directory.

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login