Windows shortcuts use relative path

  

The solution is as follows:

Open Notepad and edit the following (assuming the root directory of the USB drive has a [games] folder, and the shortcut you need to build points to it. Inside the content):

Start "" "game\\steam\\Steam.exe"

Save to the root directory of the USB drive, the file name is "Steam.bat" (Note: the save type is “ all files (*.*)”, if not, the full name of your file is Stream.bat.txt)

Once built, double click to run directly The Steam program is the same as the Windows shortcut!

If you need to open multiple programs at the same time with a single shortcut, change the edit to:

start "" Tools\\Network\\FlashGet v1.71\\FlashGet.exe< Br>

start "" Tools\\Network\\Tencent\\qq\\QQ.exe

start "" File\\Material\\Beautiful MM Photos\\

start "" Tools\\Entertainment\\Winamp\\Winamp.exe File\\MP3\\MP3List.m3u

start "" EXPLORER.EXE /e, File\\Material\\Beautiful MM Photo\\

Save For “Common Software.bat”, double-click "Common Software.bat" to run both FlashGet and QQ programs, open "Beautiful MM photos" folder, use Winamp to play “MP3 list.m3u&rdquo ; song list, open with Explorer to "beautiful MM photos" folder

The format of this command is:

start+half-width space+""+half-width space+ program, File or folder path

If there is a space in the path, the entire path must be double-sided Quotes, otherwise it is not recognized! If you follow the file or folder will open with the default program, of course, if you want to run with parameters or use your own program to open the file, you can still add the corresponding program path and parameters in front of the file path, such as in the example In the last line of the command, EXPLORER.EXE is the specified open program. The parameter “/e,” means to open with the resource manager!

Here, the path of the program, file or folder uses a relative path that does not indicate the drive letter, so the system will automatically look for the current drive letter and the Windows installation directory, so that the drive letter is not changed. ! ! ! Of course, Explorer.exe does not need to add a detailed path. After all, the system main files of each computer are not installed in C:\\Windows! ! ! The DOS window will automatically disappear after the program runs. If it does not disappear, please check and delete the extra blank lines in the batch file.

The Start command can not only open programs, files, but also directly call IE or the system default browser to open the URL! So we can also open all the usual URLs at the same time in this way~ Edit the following command:

start "" http://www.google.com/

start "" ; http://www.msn.com.cn/

Save as a .bat file. You can open the Google and MSN home pages at the same time by running this file.

In addition, because the actual use of the batch file, you can also add the file to the "ld:;copy " file \\MP3\\*.*" D:\\ ” All the files in the folder are copied to the hard disk! ! !

The above is the setting for Windows XP. If it is not correct, I still want to correct it~~~

Copyright © Windows knowledge All Rights Reserved