Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I like to create scripts that automate
a long series of complex and often
tedious commands. In fact, if I couldn't
create scripts that do what sometimes
seems inpossible I wouldn't have any
fun at all when I sit down in front of
my PC!I've got a couple of apps that add or
delete commands from the Context Menu.
I can also edit the Registry directly.
I need a command (shortcut, batch file,
etc.) that will delete or move files and
folders to a Recycle Bin that is not on
the same partiton. In other words, if a
file is on partition "G" (for example)
I want to be able to move it to a Recycle
Bin folder on "C."If you really want me to, I'll explain the
reasons behind this idea in more detail.
In any case, I need a command that will
do the job.Rich

I'd be interested in why.
Each drive has it's own Recycle Bin.
Because only the deleted file name is moved to the Recycle Bins directory. Also if the file is moved to Drive C then how would you restore the file.

Some people create more than one partition on a hard drive, Windows in one and storage in the other. If you had such a command as you are asking, could you create a virus or other bug that defeats one of the ideas behind a multi-partition HD?
Besides, if it's fun to you, why are you asking for help here taking away your pleasure?

you could always move the files from G to C temp directory and then delete them to the C recycle bin.

Lord, oh mighty! (Forgive me for a little
bit of swearing.) I've never created a
virus, have no interest in hacking, except
what some folks call Reg Hacking which is
nothing more than editing the Registry!It's true, I really do enjoy creating macros
and scripts, that run on MY PC ONLY!!The script I wanted to create would move
files off an external hard drive connected
to a slow USB_1.1 port and move them into
one of the Recycle folders on the much
faster internal drive partitions. Then,
when I run my file shredding or overwritng
app it wouldn't take forever to complete
the job. The final part of the script is
going to automatically refresh the Desktop,
so the Recycle Bin full icon changes to
the empty icon. That way I'll know
immediately that all the files have been
deleted and shredded. Approximately once
a week I let my file shredding app
overwrite all deleted files on all
partitions as well as slack space cleanup.I've got GoBack running 99% of time and I
backup everything that matters.I was hit only once in my computing life
with a destructive virus, so I definitely
know how disturbing it can be! If I wanted
to hurt someone I would punch them
directly in the nose, not slither into
their PC like some slimy worm!I was asking for command line help
because I don't know ALL of the tens of
thousands of commands available when
you are trying to create a script. That
was my only motive when I posted the
message.The fear of viruses has made us all a bit
paranoid. I apologize if I upset anyone.Rich

The file shredding part has to be run on the drive where the file was. This means the USB drive. Moving the file off of the USB,
copying and then deleteing will still leave the original file sectors on the USB. Your procedure would not overwrite the original location of the file only the location of the copy on the C Drive.Sorry I don't think this method is going to work.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |