New
#21
bumping an old thread coz i'm too lazy to start a new one...
does anybody know how to associate a file type with sendto? so the default action for certain file type is to send it to a certain location?
abstract ideas generally become easier to understand by using a concrete example:
i want to associate .torrent files with sendto, so when i click on them in my browser, they get sent to a laptop folder. i usually have my laptop running 24/7, downloading and uploading torrents - i use it because it's quiet, frugal with power, and doesn't interfere with my main pc.
however, i like to use my main pc to browse for torrents, and my usual procedure is to find a nice .torrent file, then download it to my 'downloads' folder on my pc. then i have to start up explorer, navigate to the downloads folder, find the file, right-click and sendto laptop shared folder.
then i have to lean over all the way to the laptop and again navigate my way to the shared folder, find and doubleclick the torrent file to load it into µtorrent.
i'm real lazy so i want to simplify this process. my first idea was to change my default downloads folder, but i didn't want all my downloads going to the laptop, only .torrent files. my next idea was to associate .torrent files with µtorrent.exe on a mapped network drive. great idea, but FAIL.
so, can i associate .torrent files, so when i click on the link in my browser, they will be sent to my laptop folder?
(my browser of choice is google chrome, if that's of any relevance.)
Liberal use of variables below.
Create text file MOVE_TOR.cmd
Place in workable location. I use C:\AntTools\
enter text:
move %1 DRV:\PATH
exit
Right click *.torrent file
Open With...
Browse...
Select MOVE_TOR.cmd
Select "Always use..." to set as Default action, otherwise, it will become an Open With option.
Another option
Changing Common Places/Favorites in Save Dialog?
thanks antman for the .cmd, i knew there had to be a simple solution like that, but i couldn't quite manage it on my own...
the .cmd suggestion works when i use ie8: if i click on a torrent link, it gets moved to desired folder, but i get a file security warning on the way. i suppose there are ways to bypass warning dialogue, but i don't like ie8!
when using chrome, it still downloads the torrent into the downloads directory, of course the .cmd works if i dblclick the .torrent file there.
i guess i can't have my cake and eat it - i guess chrome and ie8 work differently - ie8 will launch the program associated with the file, whereas chrome just downloads most file types into its default download directory and the user has to explicitly find the file and run/click/view it. extra security i suppose...
anyway thanks again antman - i scratched your back, and you returned the favour...
Is there a "Powertoys send to" for Win7? I love the fact Send To would open a box and allow me to move a file to any folder?
I am pretty noobie on this stuff and would like some help. I apologize for my ignorance up front.
hey nealh, take a look at this tutorial, it may be what you want.
You could always use Windows Scripting Host to do a 'SendTo SendTo'...
Save this in Notepad as 'SendTo.vbs' somewhere and place a link to it in the SendTo folder.
Code:' Script to create a sendto shortcut to the selected object. ' Place a shortcut to this script in your Windows SendTo folder. Option Explicit Const strNormalWindow = 4 Private fsoFileSystem Private objArgs Private objShellLink Private strBaseName Private strSendTo Private strShortcutPath Private wshShell Set wshShell = WScript.CreateObject("WScript.Shell") Set objArgs = WScript.Arguments Set fsoFileSystem = CreateObject("Scripting.FileSystemObject") strSendTo = wshShell.SpecialFolders("SendTo") ' Strip path and file extension from command-line argument. strBaseName = fsoFileSystem.GetBaseName(objArgs(0)) strShortcutPath = strSendTo & "\" & strBaseName & ".lnk" ' Only create the shortcut if it doesn't already exist. If Not fsoFileSystem.FileExists(strShortcutPath) Then Set objShellLink = wshShell.CreateShortcut(strShortcutPath) With objShellLink .TargetPath = objArgs(0) .WindowStyle = strNormalWindow .IconLocation = objArgs(0) & ", 0" .WorkingDirectory = strSendTo .Save End With Set objShellLink = Nothing End If Set fsoFileSystem = Nothing Set wshShell = Nothing
thanks generator! shame the script couldn't send a shortcut of itself to sendto first :)
what a fantastic community this is!
In addition to reading the tutorial, you might try this thread/post... SendTo SendTo