- Posts: 228
- Thank you received: 0
Meaning of periods and forward slashes in regards to file locations.
3 years 2 months ago #278125
by beefy
My INI file has this section:
[RS274NGC]
PARAMETER_FILE = linuxcnc.var
RS274NGC_STARTUP_CODE = o<metric_startup> call
SUBROUTINE_PATH = ./:./qtplasmac:../../nc_files/subroutines
USER_M_PATH = ./:./qtplasmac
I know that a colon is a separator of different paths.
I can also find information on Google about the single period followed by the forward slash (./)
However, the last path of SUBROUTINE_PATH which is
../../nc_files/subroutines
has me a bit stumped, and I can't find any information on that.
What is the meaning of ../.. before the /nc_files/subroutines
[RS274NGC]
PARAMETER_FILE = linuxcnc.var
RS274NGC_STARTUP_CODE = o<metric_startup> call
SUBROUTINE_PATH = ./:./qtplasmac:../../nc_files/subroutines
USER_M_PATH = ./:./qtplasmac
I know that a colon is a separator of different paths.
I can also find information on Google about the single period followed by the forward slash (./)
However, the last path of SUBROUTINE_PATH which is
../../nc_files/subroutines
has me a bit stumped, and I can't find any information on that.
What is the meaning of ../.. before the /nc_files/subroutines
Please Log in to join the conversation.
3 years 2 months ago #278126
by cmorley
Replied by cmorley on topic Meaning of periods and forward slashes in regards to file locations.
../ move back one folders
../../ move back two folders
Paths with these are known as relative paths.
You could change these to absolutes paths.
either way - they need to point to the expected folder.
Hope that helps.
../../ move back two folders
Paths with these are known as relative paths.
You could change these to absolutes paths.
either way - they need to point to the expected folder.
Hope that helps.
Please Log in to join the conversation.
3 years 2 months ago #278128
by beefy
Replied by beefy on topic Meaning of periods and forward slashes in regards to file locations.
Thanks Cmorley,
easy once I know.
Since I posted I actually managed to find a bit more info on them but your description is much simpler. Most Google results talk about parent directory.
I like the way you tell it, move back one or two folders.
Keith
easy once I know.
Since I posted I actually managed to find a bit more info on them but your description is much simpler. Most Google results talk about parent directory.
I like the way you tell it, move back one or two folders.
Keith
Please Log in to join the conversation.
3 years 2 months ago #278135
by rodw
Replied by rodw on topic Meaning of periods and forward slashes in regards to file locations.
Please Log in to join the conversation.
3 years 2 months ago #278195
by beefy
I think PTSD made me block it out of my mind. Don't remind me about it or I'll have to reach for the meds.
I'll never forget my first laptop with that nasty 3 letter system on it. Cost me $4K and had a "whopping" 120 Megabyte (not a typo) hard drive LOL.
How things have changed.
Replied by beefy on topic Meaning of periods and forward slashes in regards to file locations.
DOS (said coughing and gagging).Beefy, I thought you were old enough to remember!
I think PTSD made me block it out of my mind. Don't remind me about it or I'll have to reach for the meds.
I'll never forget my first laptop with that nasty 3 letter system on it. Cost me $4K and had a "whopping" 120 Megabyte (not a typo) hard drive LOL.
How things have changed.
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22012
- Thank you received: 4
3 years 2 months ago #278197
by tommylight
Replied by tommylight on topic Meaning of periods and forward slashes in regards to file locations.
I just finished installing that 3 letter word OS on some very old laptops i have, not fun at all.
Toshiba T2100CT anyone??
I think some are older, that one is from 1995. Still working with original 260MB hard drive! Also runs Win95, slowly....
Toshiba T2100CT anyone??
I think some are older, that one is from 1995. Still working with original 260MB hard drive! Also runs Win95, slowly....
Please Log in to join the conversation.
3 years 2 months ago #278234
by beefy
Replied by beefy on topic Meaning of periods and forward slashes in regards to file locations.
Wow, a massive 250 MB, double what mine was. Gee you're lucky.
So what are you putting yourself through that hell for. I'm guessing they have a special end purpose.
So what are you putting yourself through that hell for. I'm guessing they have a special end purpose.
Please Log in to join the conversation.
3 years 2 months ago #278241
by rodw
Replied by rodw on topic Meaning of periods and forward slashes in regards to file locations.
pfft, my first HDD was 20 mb with 68 Ms seek time. Then upgraded to a voice coil 40mb one with maybe 9 Ms access. A month later it failed and turned itself into a $1k paperweight!
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22012
- Thank you received: 4
3 years 2 months ago #278260
by tommylight
Replied by tommylight on topic Meaning of periods and forward slashes in regards to file locations.
Linux = /folder/folder/folder
DOS = \folder\folder\folder
-
No idea, just making them work for now, needed a break from CNC and 3D printers.
So far a 4GB HDD is dead, the rest is still OK.
DOS = \folder\folder\folder
-
No idea, just making them work for now, needed a break from CNC and 3D printers.
So far a 4GB HDD is dead, the rest is still OK.
Please Log in to join the conversation.
Time to create page: 0.093 seconds
