Traditionally, you will open the file in Windows Explorer and then copy the path in the address bar and manually append file name to the end.
Say you have a file(abc.txt) at E:\All\Training Material. When you copy path, you will first append file name at the end and then add double quotes("") since we have a space in folder name.
To save time, you can use a trick by TFH in Windows Explorer.
Trick: Just hold "SHIFT" key when you right-click a file and select option "Copy As Path".
You will get the string as : "E:\All\Training Material\abc.txt".
And you are ready to go using this.
NOTE
Tested on: Windows 7.
0 comments: