I'm wondering if there's any protocol for making a
shortcut link to 2 places. Not sync or anything like
that. I want to go right-click -> SendTo -> Backup1
and have that target lnk file point to, say, D:\Backup
and G:\Something\orOther. Then thre right-clicked
file would be copied to both locations.
I think I can do it by putting VBScripts into the SendTo
folder, but I was hoping there might be a simple
approach using lnk files.
but I was hoping there might be a simple
approach using lnk files.
Something like "cmd /c start {prog1} & start {prog2}" perhaps ?
To apply the argument to both programs a bit of a trick needs to be used :
cmd /c for %a in ("{prog1}" "{prog2}") do %a
Newyana2,
Something like "cmd /c start {prog1} & start {prog2}" perhaps ?
The above will apply an/the argument (filename) only to the last program.
:-(
To apply the argument to both programs a bit of a trick needs to be used :
cmd /c for %a in ("{prog1}" "{prog2}") do %a
This starts the second program only after the first one has finished
(setting the shortcut to run "minimized" will hide the console window).
To start both at the same time just include 'start "title"' after the "do".
regards,
Rudy Wieser
As already suggested by Big Al, all that is needed is a batch file in the SendTo folder.
cmd /c for %a in ("{prog1}" "{prog2}") do %aThanks, but what I was looking for was a way to make a lnk file do double duty in copying a file.
I tested a VBS in SendTo. WScript.Arguments(0) gets the full path of the right-clicked file.
One pleasant surprise with Win10 is that it's not hard
to change icons. So I can probably set a folder icon on
the SendTo menu.
This is because I've set up redundant drives and I often
save articles by copying webpage text to Notepad and saving
a simple text file. The target folders are topics like security,
privacy, ideas, sample code, etc. So if I see an interesting
article about, say, privacy, I want to right-click that file on
the Desktop and send it to both privacy folders.
Thanks, but what I was looking for was a way to make a lnk file do double duty in copying a file.
Ackk... I just realized that a simple copy command will cause a problem : the source filename needs to come /before/ the target. And as the source filename is, by the .lnk mechanism, always glued to the end of the string
...
On 4/6/2024 3:27 AM, R.Wieser wrote:
To apply the argument to both programs a bit of a trick needs to be used :
cmd /c for %a in ("{prog1}" "{prog2}") do %a
   Thanks, but what I was looking for was a way to make
a lnk file do double duty in copying a file. Maybe that's not
possible. If not then I'll use VBScripts. I tested a VBS in
SendTo. WScript.Arguments(0) gets the full path of the
right-clicked file.
  One pleasant surprise with Win10 is that it's not hard
to change icons. So I can probably set a folder icon on
the SendTo menu.
   This is because I've set up redundant drives and I often
save articles by copying webpage text to Notepad and saving
a simple text file. The target folders are topics like security,
privacy, ideas, sample code, etc. So if I see an interesting
article about, say, privacy, I want to right-click that file on
the Desktop and send it to both privacy folders.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 462 |
Nodes: | 16 (2 / 14) |
Uptime: | 70:06:46 |
Calls: | 9,374 |
Calls today: | 1 |
Files: | 13,549 |
Messages: | 6,088,177 |