| View previous topic :: View next topic |
| Author |
Message |
EdScriptNewbie
Joined: 20 Jan 2007 Posts: 110
|
Posted: Mon Apr 27, 2009 12:17 am Post subject: Select file (win explorer)& move it to specific other fo |
|
|
I thought this would be easy, but I've looked around in Help and searched here in the forum, and haven't a seen a way to do it: I want to select a file or folder in a Windows Explorer view, and then key a hotkey that moves the selected item to a specific folder.
So lets say I've opened the "My Documents" folder and can see icons for several different file. I select a Word document called "ThisLists.doc" by single-clicking on. Then I press the hotkey win-alt-shift-L and its script moves ThisLists.doc to the folder "My Documents\lists"
Then say I open the folder "My Documents\Other Stuff" and select the excel document "AnotherList.xls" and again press the same hotkey win-alt-shift-L and the same script moves AnotherList.xls into the folder "My Documents\lists"
How would I write that win-alt-shift-L script?
THANKS
[Moved from Scripts & Functions forum. ~jaco0646] _________________ ...Ed |
|
| Back to top |
|
 |
ManaUser
Joined: 24 May 2007 Posts: 1121
|
Posted: Mon Apr 27, 2009 1:39 am Post subject: |
|
|
| Code: | #!+l::
SavedClip := ClipboardAll
Clipboard =
Send ^c
ClipWait 1
If NOT Errorlevel
FileMove %Clipboard%, C:\Foo\Bar\
Clipboard := SavedClip
Return |
|
|
| Back to top |
|
 |
EdScriptNewbie
Joined: 20 Jan 2007 Posts: 110
|
Posted: Wed May 06, 2009 10:41 am Post subject: (realized I didn't reply) THANKS this worked great! |
|
|
THANKS! _________________ ...Ed |
|
| Back to top |
|
 |
|