Windows path progra 1


















Collectives on Stack Overflow. Learn more. Asked 9 years, 7 months ago. Active 9 years, 7 months ago. Viewed 1k times. Improve this question.

Shawn Vader Shawn Vader 12k 11 11 gold badges 50 50 silver badges 60 60 bronze badges. Add a comment. Active Oldest Votes. Improve this answer. Improve this answer.

Can you be sure that the short name does never change, which would be important for a configuration file? The short name might be different from your example, e. ChrisF: If only I could downvote your comment, I would. Where do you get the idea that "Windows still uses the old 8. On the contrary, file systems can be configured to not use it at all. The format still available and Windows recognises it so in that sense it "uses" it. I would like to think that if you took it away Windows would still work, but I have the sneaking suspicion that there's still some old code that doesn't recognise long names lurking in the depths of the operating system.

Show 8 more comments. Yes, maybe, but it will work in most of cases. I think the ideal answer would be the highlighted one above, which was answered by lit.

Thanks for your inputs anyways. Thanks for the solution. Andrew Scagnelli Andrew Scagnelli 1, 4 4 gold badges 18 18 silver badges 26 26 bronze badges. Using the variables is the correct way. Just because the executable is in a directory will not cause that directory to be the current working directory. The executable will have to do something before a relative directory can be used.

Steve Cooper Steve Cooper Sometimes you can quote the filename. Lott S. Lott k 75 75 gold badges silver badges bronze badges.

As i said in my response, it's possible to use the short-name notation. Why are you also making a comment here? Isn't your answer sufficient?

Richard Richard 2 2 bronze badges. As an alternative to the other answers, you can try symbolic links. Depending on the case, this may be way easier to do, for instance when the application has n mentions of the target folder throughout its code A symbolic link will create something similar to a shortcut to a folder, but seen as an actual folder by other applications. This link can be seen in Windows Explorer as a folder with the symbol of a shortcut Be very careful not to create circular links if you start playing too much with this.

There should be no need to go to links, symbolic or otherwise. It is unlikely that this would resolve the underlying problem.

It DOES solve my problems with python, scipy and theano installations. In fact it was definitely the easiest and most safe option not to say the only. Okay, I decided to change the question, since I can't always reproduce this now :x Anyway, it hasn't been asked before, could be handy for someone else. Note: Short file names can be disabled.

Show 3 more comments. Active Oldest Votes. Knowledge base entry Basically on FAT systems all directory entries are still stored in a format compatible with the old 8. Improve this answer. Link doesn't work. Do you remember what it was? It appears Microsoft have deleted that knowledge base entry, which is pretty bad of them! Add a comment. Pi Delport Pi Delport 3 3 silver badges 13 13 bronze badges. The Overflow Blog.

Podcast Helping communities build their own LTE networks. Podcast Making Agile work for data science. Featured on Meta.



0コメント

  • 1000 / 1000