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-06 10:28
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to delete files from a USB removable storage to the recycle bin? View 1,606 Replies 13
Original Poster Posted 2006-12-13 01:13 ·  中国 上海 电信
初级用户
★★
Credits 148
Posts 69
Joined 2006-11-23 23:04
19-year member
UID 71504
Gender Male
Status Offline
@echo off
if not exist D:\USB回收站.{645FF040-5081-101B-9F08-00AA002F954E} md USB回收站.{645FF040-5081-101B-9F08-00AA002F954E}
attrib +s +h USB回收站.{645FF040-5081-101B-9F08-00AA002F954E}
move "H:\aaaaaaaaaaaaaaaa.txt" "D:\USB回收站.{645FF040-5081-101B-9F08-00AA002F954E}"
pause

How to delete files from a USB removable storage to the recycle bin? The test failed, and later I thought it was inevitable to fail. It was just a shortcut I built. Hehe, really stupid...

Do you have any good methods? Introduce them!?

Or where should the files be moved to be correct?

[ Last edited by echo on 2006-12-12 at 12:29 PM ]
Floor 2 Posted 2006-12-13 01:32 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline

  It should be moved to the Recycle folder in the root directory of the drive letter. For example, D:\Recycle .
Floor 3 Posted 2006-12-13 01:46 ·  中国 上海 电信
初级用户
★★
Credits 148
Posts 69
Joined 2006-11-23 23:04
19-year member
UID 71504
Gender Male
Status Offline
Still no good, there are also a bunch of shortcuts in D:\RECYCLER
Floor 4 Posted 2006-12-13 03:55 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline
Originally posted by echo at 2006-12-13 01:46:
It still doesn't work. There are also a bunch of shortcuts in D:\RECYCLER哦


  What about move somethings d:\recycled?
Floor 5 Posted 2006-12-13 04:33 ·  中国 上海 电信
初级用户
★★
Credits 148
Posts 69
Joined 2006-11-23 23:04
19-year member
UID 71504
Gender Male
Status Offline
Originally posted by lxmxn at 2006-12-12 02:55 PM:


  What about moving some things to d:\recycled?

All possible attempts have been made, but it still doesn't work. Moreover, recycled seems to be in 9X?
Floor 6 Posted 2006-12-13 07:09 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline


And recycled seems to be in 9X, right?



recycler

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 7 Posted 2006-12-13 12:07 ·  中国 江西 南昌 电信
初级用户
Credits 24
Posts 13
Joined 2006-12-12 09:35
19-year member
UID 73287
Gender Male
Status Offline
No way... This can also be done.. I only know how to drag it to the recycle bin
Floor 8 Posted 2006-12-14 01:55 ·  中国 上海 电信
初级用户
★★
Credits 148
Posts 69
Joined 2006-11-23 23:04
19-year member
UID 71504
Gender Male
Status Offline
It seems there's no good way.
Floor 9 Posted 2007-01-27 02:45 ·  中国 辽宁 大连 联通
初级用户
Alpha
Credits 46
Posts 21
Joined 2007-01-27 02:21
19-year member
UID 77790
Gender Male
Status Offline
This is not acceptable. The Recycle Bin is not that simple! Just moving files is not enough!

Refer to this
http://www.cn-dos.net/forum/viewthread.php?tid=13075
Floor 10 Posted 2007-06-07 20:25 ·  中国 重庆 南岸区 电信
新手上路
Credits 2
Posts 1
Joined 2007-05-31 17:38
19-year member
UID 89889
Gender Male
Status Offline
Floor 11 Posted 2007-06-07 21:55 ·  中国 山东 淄博 联通
中级用户
★★
Credits 272
Posts 99
Joined 2006-06-02 09:12
20-year member
UID 56414
Status Offline
The ShellApplication of VBS can do this
Floor 12 Posted 2007-06-08 10:45 ·  中国 新疆 乌鲁木齐 电信
高级用户
★★★
Autowalk
Credits 845
Posts 375
Joined 2007-03-03 01:58
19-year member
UID 80606
Gender Male
Status Offline
Don't understand. Removing to the recycle bin is not delete?
你好,脚本专家!
<a target=blank href=tencent://message/?uin=29654761&Site=www.111.com&Menu=yes><img border="0" SRC=http://wpa.qq.com/pa?p=1:29654761:5 alt="点击这里给我发消息"></a>
Floor 13 Posted 2007-06-08 13:05 ·  中国 江苏 南京 电信
银牌会员
★★★
Credits 1,513
Posts 554
Joined 2005-12-30 00:50
20-year member
UID 48180
Gender Male
Status Offline
If the recycle bin is deleted and there's nothing in it, you'll understand.
Floor 14 Posted 2007-11-09 17:13 ·  中国 上海 联通
初级用户
★★
Credits 153
Posts 68
Joined 2006-10-12 22:25
19-year member
UID 65507
From 上海
Status Offline
There's no solution. Is there anyone who has the latest achievements?
个人主页-找餐厅:http://www.canting.cc
Forum Jump: