MedVision ad

absolute and relative file paths (1 Viewer)

jenni86

New Member
Joined
Oct 13, 2003
Messages
10
Does anyone know what that is under intergrate commercial computing packages???
 

puffkenny

******
Joined
Sep 13, 2003
Messages
228
Gender
Female
HSC
1999
dis is wat i've got for it
absolute file path:
includes the full path name to a file
relative file path:
shows how to move from the current location to find the document

does this mean anything to you?
 

Glide

Member
Joined
Oct 13, 2003
Messages
103
just off the top of my head
absolute = c:\software\blah.exe
relative = \blah.exe
 

Winston

Active Member
Joined
Aug 30, 2002
Messages
6,128
Gender
Undisclosed
HSC
2003
Originally posted by ...
so its only blah.exe as a relative path

a better example

when coding in html say your linking a image for a button


\image\picture2.gif

that's a relative path.
 

Glide

Member
Joined
Oct 13, 2003
Messages
103
Originally posted by hurrotisrobbo
Glide: Drop the backslash from the relative path.

Have either: .\blah.exe or blah.exe , not halfway. :D
no..

.\ means it'll drop down a directory (from c:\software\1\blah.exe to c:\software\blah.exe")
\ means it'll use the current or default directory (c:\software\blah.exe)
..\ means it'll go right to the bottom of the directory (c:\)
 

puffkenny

******
Joined
Sep 13, 2003
Messages
228
Gender
Female
HSC
1999
this is so confusing...
can some one find a proper definition and a good example please?
 

Amish

Member
Joined
Dec 3, 2002
Messages
57
Location
carlingford.nsw.2118
Gender
Undisclosed
HSC
N/A
Absolute Path gives the whole path to where the file can be found on the hard drive
e.g. C:\hello\world\program.exe

Relative Path is where the file you want is found in comparison to the program that is wanting it
e.g. a html file in C:\hello\world\index.html wants to execute that program.exe so instead of stating the whole path (the absolute path) he just writes in \program.exe meaning the file needed is in the same directory as the html file.

Owe and everything Glide said was right :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top