Categories:
Administration (10)
Adware Spyware (7)
Apache (10)
Bluetooth (125)
DOS Commands (1)
Edge (28)
General (2)
Internet Explorer (217)
Media Center (12)
Media Player (11)
Mozilla Firefox (18)
PHP (15)
Programming (8)
Security (4)
Silverlight (15)
Tips (17)
Tools (218)
Tutorials (5)
Windows 10 (166)
Windows 7 (636)
Windows 8 (1091)
Windows Phone (33)
Windows Server 2008 (165)
Windows Server 2012 (84)
Windows Server 2016 (23)
Windows Vista (52)
Collections:
Other Resources:
File Name with Relative Path or Absolute Path
Should I provide file name with Relative Path or Absolute Path?
✍: FYIcenter.com
When provide a file name, you have choice of using relative path
or absolute path:
1. If you provide a file name with an absolute path, the system will go to the directory of the given path to locate the file.
Providing an absolute path is a good practice for Windows system files or installed program files. Because those files are usually installed in fixed directories.
For example: "C:\windows\System32\cmd.exe" has the absolute path. The system will go to "\windows\System32" on drive C to find the file.
2. If you provide a file name with a relative path, the system will start from the current directory and follow the given path to reach the target directory to locate the file.
Providing a relative path is a good practice for a program to locate its supporting files like configuration files and library files, Because those files are usually installed together with the program in sub-directories.
For example, the following commands shows you how to run the java.exe program with a library file given in relative path name format "..\lib\plugin.jar":
C:\fyicenter>cd "\Program Files (x86)\Java\jre6\bin" C:\Program Files (x86)\Java\jre6\bin>java.exe -jar ..\lib\plugin.jar
⇒ File Name with or without File Extension
2022-08-30, 1779👍, 1💬
Popular Posts:
What is "SynTPEnh Caller Service" in my Windows 7 service list? And how is "SynTPEnh Caller Service"...
Where to find tutorials on using Bluetooth? I want to learn how to work with Bluetooth connections? ...
What is smss.exe process - Windows NT Session Manager? Process smss.exe is part of Windows system. I...
Can I disable Windows service "InstallDriver Table Manager" to speedup my computer? Windows service ...
The day I received Windows 10, everything seemed to work. The next day Microsoft Solitaire Collectio...