China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-07 08:38
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Solved] How to create "Show Desktop.scf" to the Quick Launch folder directory View 6,648 Replies 14
Original Poster Posted 2007-12-03 12:09 ·  中国 上海 东方有线
银牌会员
★★★★
Credits 2,025
Posts 1,122
Joined 2007-09-05 20:15
18-year member
UID 96653
Gender Male
Status Offline
The quick launch folder is at C:\Documents and Settings\Username\Application Data\Microsoft\Internet Explorer\Quick Launch

The problem is not knowing what the username is...

[ Last edited by tireless on 2007-12-2 at 08:06 PM ]
Floor 2 Posted 2007-12-03 12:13 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline
echo %APPDATA%\Microsoft\Internet Explorer\Quick Launch


Enter the set command in the command line to view environment variables.
Floor 3 Posted 2007-12-03 12:58 ·  中国 北京 联通
中级用户
★★
替身
Credits 269
Posts 130
Joined 2007-03-23 21:41
19-year member
UID 82683
Gender Female
Status Offline
```
@echo off&setlocal&title Create "Show Desktop" Shortcut
>>Show Desktop.scf echo
>>Show Desktop.scf echo Command=2
>>Show Desktop.scf echo IconFile=explorer.exe,3
>>Show Desktop.scf echo
>>Show Desktop.scf echo Command=ToggleDesktop
```
Floor 4 Posted 2007-12-03 13:10 ·  中国 上海 东方有线
银牌会员
★★★★
Credits 2,025
Posts 1,122
Joined 2007-09-05 20:15
18-year member
UID 96653
Gender Male
Status Offline
"Enter the command `set` in the command line to view environment variables.
Good stuff. I was still "collecting environment variables" before -_-|||

Thanks to both of you.

[ Last edited by tireless on 2007-12-2 at 05:12 PM ]
Floor 5 Posted 2007-12-03 13:15 ·  中国 上海 东方有线
银牌会员
★★★★
Credits 2,025
Posts 1,122
Joined 2007-09-05 20:15
18-year member
UID 96653
Gender Male
Status Offline
Then how to create to %APPDATA%\Microsoft\Internet Explorer\Quick Launch?
Floor 6 Posted 2007-12-03 13:48 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline
Just drag the file generated by the 3rd floor to the path displayed by the 2nd floor.
Floor 7 Posted 2007-12-03 13:58 ·  中国 上海 东方有线
银牌会员
★★★★
Credits 2,025
Posts 1,122
Joined 2007-09-05 20:15
18-year member
UID 96653
Gender Male
Status Offline
Is creating directly like this?
>>"%APPDATA%\Microsoft\Internet Explorer\Quick Launch"\Show Desktop.scf echo
>>"%APPDATA%\Microsoft\Internet Explorer\Quick Launch"\Show Desktop.scf echo Command=2
>>"%APPDATA%\Microsoft\Internet Explorer\Quick Launch"\Show Desktop.scf echo IconFile=explorer.exe,3
>>"%APPDATA%\Microsoft\Internet Explorer\Quick Launch"\Show Desktop.scf echo
>>"%APPDATA%\Microsoft\Internet Explorer\Quick Launch"\Show Desktop.scf echo Command=ToggleDesktop

Is there a more concise code?

Weakly ask, can it appear on the far left of the quick launch bar?

[ Last edited by tireless on 2007-12-2 at 06:17 PM ]
Floor 8 Posted 2007-12-03 15:08 ·  中国 福建 泉州 电信
初级用户
★★
Credits 148
Posts 69
Joined 2006-11-23 23:04
19-year member
UID 71504
Gender Male
Status Offline
The third floor is the correct answer...
Floor 9 Posted 2007-12-03 15:25 ·  中国 广东 东莞 鹏博士宽带
新手上路
Credits 16
Posts 6
Joined 2007-12-03 10:10
18-year member
UID 104520
Gender Male
Status Offline
```@echo off
if exist 显示桌面.scf del 显示桌面.scf
>>显示桌面.scf echo
>>显示桌面.scf echo Command=2
>>显示桌面.scf echo IconFile=explorer.exe,3
>>显示桌面.scf echo
>>显示桌面.scf echo Command=ToggleDesktop
copy 显示桌面.scf "%APPDATA%\Microsoft\Internet Explorer\Quick Launch" /y>nul
Floor 10 Posted 2007-12-03 15:26 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline
Originally posted by tireless at 2007-12-3 13:58:
Is this how to create it directly?
>>"%APPDATA%\Microsoft\Internet Explorer\Quick Launch"\Show Desktop.scf echo
>>"%APPDATA%\Microsoft\Internet Explorer\Quick Launch" ...

Why make it more concise?

more +1 < %0 >"%APPDATA%\Microsoft\Internet Explorer\Quick Launch\Show Desktop1.scf" && exit /b 0

Command=2
IconFile=explorer.exe,3

Command=ToggleDesktop


To adjust the position, just drag it with the mouse. Currently, I don't know how to adjust the position with a batch script, o_O

[ Last edited by lxmxn on 2007-12-3 at 03:27 PM ]
Floor 11 Posted 2007-12-03 15:35 ·  中国 广东 广州 天河区 电信
金牌会员
★★★★
一叶枝头,万树皆春
Credits 2,564
Posts 1,127
Joined 2006-12-25 22:57
19-year member
UID 74552
Gender Male
Status Offline
Floor 12 Posted 2007-12-03 15:47 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline
Originally posted by everest79 at 2007-12-3 15:35:
Which position to adjust?

Look at the red words on floor 7.
Weakly asking, can it appear on the far left of the quick launch bar?
Floor 13 Posted 2007-12-03 16:05 ·  中国 上海 东方有线
银牌会员
★★★★
Credits 2,025
Posts 1,122
Joined 2007-09-05 20:15
18-year member
UID 96653
Gender Male
Status Offline
Okay. Can't understand the first line of code.

[ Last edited by tireless on 2007-12-2 at 08:15 PM ]
Floor 14 Posted 2007-12-03 16:46 ·  中国 广东 广州 天河区 电信
金牌会员
★★★★
一叶枝头,万树皆春
Credits 2,564
Posts 1,127
Joined 2006-12-25 22:57
19-year member
UID 74552
Gender Male
Status Offline
I used to have this problem too. It's very strange. The saving of the toolbar settings in the taskbar is constrained by whether the desktop settings are saved, but I exported the current desktop settings and couldn't find the relevant settings for the taskbar
Floor 15 Posted 2008-01-22 09:26 ·  中国 浙江 温州 平阳县 电信
初级用户
Credits 97
Posts 42
Joined 2006-10-05 22:12
19-year member
UID 64633
Gender Male
Status Offline
Just trying it out since the quick show desktop on one of my hosts is gone
Forum Jump: