Windows doesn't support relative paths for shortcuts, but that doesn't mean that you cannot find a workaround. Here is how:
1- Create a new text file in the location where you want to put your shortcut.
2- Rename it to "My Shortcut Name.BAT". Confirm in the dialog box that will appear.
3- Right Click the file > Edit > Confirm the dialog box.
4- Create a formula similar to the following example. The only variation should be the path itself. In this example, I am going up 2 levels and then into 3 levels to open a PDF file (the red part of the command below is the changing directory part that you want to change according to your file structure, what comes before is standard):
%windir%\system32\cmd.exe /q/c start ..\..\"InOneLevel\In Two Levels with spaces in folder name\Third Level\filename.pdf"
Note: This method should work with all media file types as long as you have the codecs installed. Windows will automatically use the default program assigned to the file type to open it, thanks to the '/q' key.
If you want to learn more about twisting windows to make it more productive in similar manners to this, you can invest some time and effort in learning Windows Scripting with PowerShell.
1- Create a new text file in the location where you want to put your shortcut.
2- Rename it to "My Shortcut Name.BAT". Confirm in the dialog box that will appear.
3- Right Click the file > Edit > Confirm the dialog box.
4- Create a formula similar to the following example. The only variation should be the path itself. In this example, I am going up 2 levels and then into 3 levels to open a PDF file (the red part of the command below is the changing directory part that you want to change according to your file structure, what comes before is standard):
%windir%\system32\cmd.exe /q/c start ..\..\"InOneLevel\In Two Levels with spaces in folder name\Third Level\filename.pdf"
Note: This method should work with all media file types as long as you have the codecs installed. Windows will automatically use the default program assigned to the file type to open it, thanks to the '/q' key.
If you want to learn more about twisting windows to make it more productive in similar manners to this, you can invest some time and effort in learning Windows Scripting with PowerShell.
No comments:
Post a Comment