Opening relative filename in root of current drive (Windows) is broken
See original GitHub issueLet’s say I have a file c:\Test.txt and I am in subdirectory c:\Somewhere. If I start Cud with
cudatext c:\Test.txt
or
cudatext ..\Test.txt
the file is loaded.
If I try to load this with
cudatext \Test.txt
I get a query whether C:\Somewhere\\Test.txt should be created. The file is not loaded.
Issue Analytics
- State:
- Created 3 years ago
- Comments:16 (7 by maintainers)
Top Results From Across the Web
File path formats on Windows systems | Microsoft Learn
A relative path to a file in a directory starting from the current directory. C:\Projects\apilibrary\apilibrary.sln, An absolute path to a file ...
Read more >Resolve absolute path from relative path and/or file name
User opens a command window in "C:\Foo" and calls Bar\test.bat ..\somefile.txt; In the batch file "C:\Foo\somefile.txt" would be derived from %1.
Read more >Relative and absolute paths, in the file system and on the web ...
on Windows it's either \ (for the current disk) or D:\ (system-wide). Relative paths. If you don't supply the root, it means that...
Read more >How to use relative paths on windows CMD? - Super User
Start a process using the file my_executable.exe found (with starting point in the current directory (relative path)) by going two ...
Read more >File and Directory Names: File, Path, Paths (Java Files Tutorial)
A relative path is related to the current position within the file system. It describes how to get from this position to the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It works… but only partly. With no Cud loaded and in x:\somewhere, I do:
cudatext \test1.txt
and this loads x:\test1.txt. OK. If I now do this:cudatext \test2.txt
I get the same messagebox as before telling me that x:\somewhere\test2.txt doesn’t exist. 2nd/1st instance communication trouble, I assume.I am developer myself. And I would LOVE to help with the development of Cud… but it’s written in FP and I am in no way proficient in Pascal anymore (I was, in another life 😄 ), let alone the intricacies of FP.
If Cud were written in C or C++ I would certainly have created a few patches already, for stuff I think would be good to have. But as it stands, I can’t.
EDIT: Actually, the problem isn’t even that Cud is written in Pascal. I can cobble together some lines of Pascal and though it would take me a lot more time than it would @Alexey-T I would be able to do it (thanks to Google and stackexchange 😄 ). The real problem for me is setting up the development environment and all the required components etc. That requires a lot of FP know-how which I simply don’t have.