| View previous topic :: View next topic |
| Author |
Message |
my english is very bad Guest
|
Posted: Sun Feb 20, 2005 12:41 am Post subject: How to "send to" |
|
|
| Is there a way to automatize the "send to" command? |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5376 Location: /b/
|
Posted: Sun Feb 20, 2005 1:04 am Post subject: |
|
|
| If you mean moving/copying files from one location to another on your computer you could use FileCopy and FileDelete |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10474
|
Posted: Sun Feb 20, 2005 1:41 am Post subject: |
|
|
If the item in the "Send To" menu you want is a normal shortcut, you might be able to simulate its behavior by running the shortcut and passing the file(s) as command line parameters:
Run, %USERPROFILE%\SendTo\My Shortcut "C:\File1.txt" "C:\File2.txt" |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Sun Feb 20, 2005 8:25 am Post subject: |
|
|
@ my english is very bad
Where are you from ? |
|
| Back to top |
|
 |
my english is very bad Guest
|
Posted: Sun Feb 20, 2005 10:58 am Post subject: |
|
|
Thank you.
I am trying rename multiple selected files.
I am doing this:
1 select the files, they are hundreds of jpg images.
2 right click and choose "send to" compiled script's shortcut.
It is working but I want to do with only one click/hotkey like what Chris wrote
| Quote: | | Run, %USERPROFILE%\SendTo\My Shortcut "C:\File1.txt" "C:\File2.txt" |
The help file says that I can just use control-c to copy files in the clipboard and Autohotkey can get the paths of all files.
Is there a problem doing this with hundreds or thousands of files?
BoBo, I am chinese living in Brasil. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10474
|
Posted: Sun Feb 20, 2005 12:38 pm Post subject: |
|
|
| my english is very bad wrote: | The help file says that I can just use control-c to copy files in the clipboard and Autohotkey can get the paths of all files.
Is there a problem doing this with hundreds or thousands of files? | It's designed to work with an unlimited number of files. However, passing these files to a script as parameters might be limited because I believe the OS limits how long a command line can be. Therefore, it's probably best to have the script always-running and make it fetch the files via a hotkey like this: | Code: | #c:: ; Win+C hotkey.
Clipboard =
Send ^c
ClipWait 1
if ErrorLevel
return
; Otherwise, we have some files on the clipboard.
Loop, parse, clipboard, `n, `r
{
MsgBox File number %A_Index% is:`n%A_LoopField%.
}
return |
|
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Sun Feb 20, 2005 1:10 pm Post subject: |
|
|
@ my english is very bad (which is kinda understatement )
| Quote: | | I am chinese living in Brasil | Lucky guy, speaking (minimum) three of the most important languages. Chinese, brasilian Portugiese (guessing), English, ... .
Wo/man I'm jealous  |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Sun Feb 20, 2005 1:13 pm Post subject: |
|
|
wrong = Portugiese
correct = Portuguese
Desculpe & Adeus  |
|
| Back to top |
|
 |
my english is very bad Guest
|
Posted: Sun Feb 20, 2005 2:17 pm Post subject: |
|
|
Chris, your way is much better. Thank you.
BoBo, you can't believe how difficult Portuguese is, english is much easier, hehehe |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Sun Feb 20, 2005 3:52 pm Post subject: |
|
|
| I found Portuguese to be quite simple, actually. I picked up a lot in the few months I was there (Brazil), whereas in France I hardly learned anything new (they talk too damn fast!). |
|
| Back to top |
|
 |
|