中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-06 10:13
48,039 topics / 350,124 posts / today 0 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » Change folder icon
Printable Version  2,085 / 18
Floor1 wudixin96 Posted 2007-04-07 01:45
银牌会员 Posts 931 Credits 1,928
ffffff

[ Last edited by wudixin96 on 2007-11-2 at 11:59 AM ]
Floor2 slore Posted 2007-04-07 03:09
铂金会员 Posts 2,478 Credits 5,212
attrib +s %currdir%

How to solve this problem that you can modify it in the properties without adding the S attribute?
Floor3 wudixin96 Posted 2007-04-07 03:15
银牌会员 Posts 931 Credits 1,928
[ Last edited by wudixin96 on 2007-11-2 at 11:59 AM ]
Floor4 slore Posted 2007-04-07 04:39
铂金会员 Posts 2,478 Credits 5,212
This method must add the system attribute to the folder, which is very troublesome, you know? (It seems that the hidden attribute cannot be modified)

So I ask, can you achieve the modification purpose without adding the system attribute?
Floor5 wudixin96 Posted 2007-04-07 05:05
银牌会员 Posts 931 Credits 1,928
ddd

[ Last edited by wudixin96 on 2007-11-2 at 11:59 AM ]
Floor6 lxmxn Posted 2007-04-07 05:07
版主 Posts 4,938 Credits 11,386
The method of the thread starter doesn't work. There are three problems:

1. Direct drag-and-drop says there is a parameter error;

2. The desktop.ini file is built in the %userprofile%;

3. Manually creating the desktop.ini file and setting the system hidden attribute still doesn't see the effect;
Floor7 slore Posted 2007-04-07 05:09
铂金会员 Posts 2,478 Credits 5,212
It's to add the system attribute to the folder...
Floor8 lxmxn Posted 2007-04-07 05:12
版主 Posts 4,938 Credits 11,386
I'll try again~~
Floor9 wudixin96 Posted 2007-04-07 05:12
银牌会员 Posts 931 Credits 1,928
[ Last edited by wudixin96 on 2007-11-2 at 11:59 AM ]
Floor10 lxmxn Posted 2007-04-07 05:34
版主 Posts 4,938 Credits 11,386

Try this,

Floor11 wudixin96 Posted 2007-04-07 05:39
银牌会员 Posts 931 Credits 1,928
...

[ Last edited by wudixin96 on 2007-11-2 at 11:59 AM ]
Floor12 scriptor Posted 2007-10-17 16:22
银牌会员 Posts 555 Credits 1,187
Originally posted by wudixin96 at 2007-4-7 05:39:
I just don't show the current path very much. Variable expansion is not used.
I'll try.


Finally, it works. Thank you lxmxn
But there is a problem with attrib +s %cd%

[ Last edited by wudixin96 on 2007-4-7 at 06:55 AM ]



attrib +s "%cd%"

To deal with directory names with spaces
Floor13 jhua Posted 2007-10-17 16:55
新手上路 Posts 15 Credits 19
It works very well. Can you explain what the following segment means?
set currdir=%~sdp0
attrib +s %currdir:~0,-1%
Floor14 jhua Posted 2007-10-17 16:57
新手上路 Posts 15 Credits 19
Hehe, got it. ~~~~~ I found out...
Floor15 Lick Posted 2007-10-19 01:24
初级用户 Posts 28 Credits 62
Originally posted by jhua at 2007-10-17 16:55:
It works well.
Can you explain
set currdir=%~sdp0
attrib +s %currdir:~0,-1%
What does this part mean?

What does this mean?
I don't understand. Can you say it? Thank you.
1 2  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023