Click here to Skip to main content
15,898,020 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to find out how to move files from or at least direct the files to a different directory from here...........

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Cache

Is this possible? If so how would it be done? Thank you.
Posted
Comments
Sergey Alexandrovich Kryukov 7-Oct-11 17:06pm    
This is not a directory, but a registry key. What do you want to do with it?
--SA
Member 7766180 7-Oct-11 17:17pm    
I was told that all downloads go there first. I wanted to move a download from a certain IP to a different directory. Right now I'm moving them into two different directorys (PASS) and (FAIL) from the Download Directory, however this doesn't work for me because I need to leave the ones going into the PASS directory in the download directory. Why not leave them there, you ask. I can't because they have to be isolated from the files that are being deleted. I hope this is somewhat clear, if not let me know and I will try to explain again. Thank you.
Sergey Alexandrovich Kryukov 7-Oct-11 17:23pm    
It depends what you use for download. If you download using Web browser, it has "Save as" menu items, and next download will go to this menu. You can also uses some stand-along downloader and use it in a custom way. Anyway, I answered how to do it via the registry, but be very careful in your steps.
Philippe Mori 8-Oct-11 8:15am    
If you want to block download from a given address, I guess some firewall programs would allows that. Don't reinvent the wheel.

This is not a directory, but under this registry keys there are several named entries (so called "values") which contain the directory names used by Explorer for different purposes. If you want, you can change them.

Just run REGEDIT.EXT and navigate to this key using the menu on left. In right pane, click on each value and manually change it. Be extra careful! This is Explorer! Don't screw up your critical data!

This won't touch original directories and its content. Now, do you need to move the content of these directories as well? You can do it, possibly using administrator account. Again, be careful. In the transition, just in case, I would not use Explorer. Use something like Total Commander, highly recommended (I pay just $46 per user for license with unlimited life-time support of this shareware, but unlimited trial period is also available. It also has an ability to "peck down" (this is how we call it) the full file or directory name into command line using Ctrl+Shift+Enter, which is pretty important because this way you will not do a dangerous name misspell.)

You can also write some code which will do this migration programmatically, using my solution for your previous question, see Moving A File From One Directory[^].

Be careful. Just in case, make sure to reboot your system after this daring activity. :-)
May I know the ultimate goal of this weird alteration? :-)

—SA
 
Share this answer
 
v3
Comments
Member 7766180 7-Oct-11 17:22pm    
Thank you. I am trying to get rid of zip files that have been downloaded, but not all of them, only those from certain IP's.
Sergey Alexandrovich Kryukov 7-Oct-11 17:33pm    
You're welcome.
I've added one more non-related solution as you mentioned downloads. If it can help you, use it.
--SA
I don't know if you really need it, but as you mentioned downloading, I can point you to my command-line HttpDownloader I gave out in response to past CodeProject question. Here: how to download a file from internet[^].

There are two good thing about it: it can continue incomplete (interrupted, failed) downloads and it works from command line.

Due to the last fact, you can write a long batch file with line like this:
HTTPDownloader http://www.domain.tld/files/myFileName.mp3 myFileName.mp3


The command line comes with two parameters, second one is optional but important when you want to continue incomplete download to this file:

HTTPDownloader source-URL [destination-file]


Also, you can modify my source code to your needs.

—SA
 
Share this answer
 
Comments
Member 7766180 7-Oct-11 17:45pm    
Thank you very much! I appreciate the help! I like how you keep track of your {'s I'm going to do that!
Sergey Alexandrovich Kryukov 7-Oct-11 17:53pm    
You're welcome.
Good luck, call again.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900