Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

We have a equal opportunity Calculus class -- it's fully integrated.


computers / alt.comp.os.windows-10 / SendTo 2 locations

SubjectAuthor
* SendTo 2 locationsNewyana2
+- Re: SendTo 2 locationsBig Al
`* Re: SendTo 2 locationsR.Wieser
 `* Re: SendTo 2 locationsR.Wieser
  +* Re: SendTo 2 locationsMikeS
  |`- Re: SendTo 2 locationsR.Wieser
  `* Re: SendTo 2 locationsNewyana2
   +* Re: SendTo 2 locationsR.Wieser
   |`* Re: SendTo 2 locationsR.Wieser
   | `- Re: SendTo 2 locationsR.Wieser
   `- Re: SendTo 2 locationsPhilip Herlihy

1
SendTo 2 locations

<uup7mk$1fgr9$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=80748&group=alt.comp.os.windows-10#80748

  copy link   Newsgroups: alt.comp.os.windows-10
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Newyana2@invalid.nospam (Newyana2)
Newsgroups: alt.comp.os.windows-10
Subject: SendTo 2 locations
Date: Fri, 5 Apr 2024 12:08:39 -0400
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <uup7mk$1fgr9$1@dont-email.me>
Injection-Date: Fri, 05 Apr 2024 16:08:53 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="629e55946d8c5848c7d5e4b9372b2dc4";
logging-data="1557353"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ZDbfA8CcaxFZmlGP1jZ9Jowz9VINVsjg="
Cancel-Lock: sha1:c+DhXaPu3issjNp72zxfubfqH3I=
X-MSMail-Priority: Normal
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
 by: Newyana2 - Fri, 5 Apr 2024 16:08 UTC

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.

Re: SendTo 2 locations

<uup91b$1fo5d$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=80749&group=alt.comp.os.windows-10#80749

  copy link   Newsgroups: alt.comp.os.windows-10
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: alan@invalid.com (Big Al)
Newsgroups: alt.comp.os.windows-10
Subject: Re: SendTo 2 locations
Date: Fri, 5 Apr 2024 12:31:39 -0400
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <uup91b$1fo5d$1@dont-email.me>
References: <uup7mk$1fgr9$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 05 Apr 2024 16:31:39 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="c283fdfca65f1a52b86b6e8e874437c9";
logging-data="1564845"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/+EmJQR9KwUndm8haah5MdNB+aClVN8D4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:s/Yc7x5jI0JY530PT2gQnmzQeJI=
In-Reply-To: <uup7mk$1fgr9$1@dont-email.me>
Content-Language: en-US
 by: Big Al - Fri, 5 Apr 2024 16:31 UTC

On 4/5/24 12:08 PM, Newyana2 wrote:
> 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.
>
>
There is a 'send to' folder in you home directory, I'm not sure what can be put there, I have a few
..lnk files. I'm sure there is more to it than that, but you could try putting a batch file in
there that would popup something. From what I see, the file you right click is passed to the .lnk.
--
Linux Mint 21.3 Cinnamon 6.0.4 Kernel 6.5.0-26-generic
Al

Re: SendTo 2 locations

<uupa4o$1g48f$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=80750&group=alt.comp.os.windows-10#80750

  copy link   Newsgroups: alt.comp.os.windows-10
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.comp.os.windows-10
Subject: Re: SendTo 2 locations
Date: Fri, 5 Apr 2024 18:49:53 +0200
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <uupa4o$1g48f$1@dont-email.me>
References: <uup7mk$1fgr9$1@dont-email.me>
Injection-Date: Fri, 05 Apr 2024 16:50:33 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="78ecd82decd2878066592267fcf01e4c";
logging-data="1577231"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+OEopKpOmCI2XxP9tPgbf6oUNN7R0UrcmFR9GLzKcawQ=="
Cancel-Lock: sha1:vhhVaE+OHy9kJ6d8PV5vnb71Fqk=
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
 by: R.Wieser - Fri, 5 Apr 2024 16:49 UTC

Newyana2,

> but I was hoping there might be a simple
> approach using lnk files.

Something like "cmd /c start {prog1} & start {prog2}" perhaps ?

Probably will flash a console window though. :-\

Regards,
Rudy Wieser

Re: SendTo 2 locations

<uuqtii$1v153$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=80755&group=alt.comp.os.windows-10#80755

  copy link   Newsgroups: alt.comp.os.windows-10
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.comp.os.windows-10
Subject: Re: SendTo 2 locations
Date: Sat, 6 Apr 2024 09:27:53 +0200
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <uuqtii$1v153$1@dont-email.me>
References: <uup7mk$1fgr9$1@dont-email.me> <uupa4o$1g48f$1@dont-email.me>
Injection-Date: Sat, 06 Apr 2024 07:28:19 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a6f030f693504b4862f320cb9faf2bc8";
logging-data="2065571"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+BwTVLR0IP7WQk7bDhjQcrfd2E+h/v0cvb8dstXRIjkw=="
Cancel-Lock: sha1:3a1czzKcwpj0WP5DlbqYpxssO54=
X-RFC2646: Format=Flowed; Response
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Priority: 3
 by: R.Wieser - Sat, 6 Apr 2024 07:27 UTC

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

Re: SendTo 2 locations

<uurbaf$223l9$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=80759&group=alt.comp.os.windows-10#80759

  copy link   Newsgroups: alt.comp.os.windows-10
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: MikeS@fred.com (MikeS)
Newsgroups: alt.comp.os.windows-10
Subject: Re: SendTo 2 locations
Date: Sat, 6 Apr 2024 12:22:54 +0100
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <uurbaf$223l9$1@dont-email.me>
References: <uup7mk$1fgr9$1@dont-email.me> <uupa4o$1g48f$1@dont-email.me>
<uuqtii$1v153$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 06 Apr 2024 11:22:55 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="27e09dac6f4b8a1923db8a3f45d62bd3";
logging-data="2166441"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19S2f/Uew0C6ZJfEf3TdOPi"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:dFbQm8+nYr14zCQgLIS/vviYbOc=
Content-Language: en-GB
In-Reply-To: <uuqtii$1v153$1@dont-email.me>
 by: MikeS - Sat, 6 Apr 2024 11:22 UTC

On 06/04/2024 08:27, R.Wieser wrote:
> 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. The filename that is sent to it can be used (as %1)
as many times as required by commands in the batch file, eg
Copy %1 D:\Backup
Copy %1 G:\Something\orOther

Re: SendTo 2 locations

<1e0d2587-f0e8-e80a-de3e-3fc04d0c563c@invalid.nospam>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=80760&group=alt.comp.os.windows-10#80760

  copy link   Newsgroups: alt.comp.os.windows-10
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mayayana@invalid.nospam (Newyana2)
Newsgroups: alt.comp.os.windows-10
Subject: Re: SendTo 2 locations
Date: Sat, 6 Apr 2024 07:39:59 -0400
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <1e0d2587-f0e8-e80a-de3e-3fc04d0c563c@invalid.nospam>
References: <uup7mk$1fgr9$1@dont-email.me> <uupa4o$1g48f$1@dont-email.me>
<uuqtii$1v153$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 06 Apr 2024 11:41:32 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="6615a358f2182b320da87e1157086a72";
logging-data="2174526"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19eVzeNFPmh9kC4q5dJo2DAYXo3snD/hUE="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.3.1
Cancel-Lock: sha1:lLe0loxMzT8dtQv+p0d52crDVtM=
In-Reply-To: <uuqtii$1v153$1@dont-email.me>
Content-Language: en-US
 by: Newyana2 - Sat, 6 Apr 2024 11:39 UTC

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.

Re: SendTo 2 locations

<uurhks$23hv1$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=80761&group=alt.comp.os.windows-10#80761

  copy link   Newsgroups: alt.comp.os.windows-10
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.comp.os.windows-10
Subject: Re: SendTo 2 locations
Date: Sat, 6 Apr 2024 15:05:27 +0200
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <uurhks$23hv1$1@dont-email.me>
References: <uup7mk$1fgr9$1@dont-email.me> <uupa4o$1g48f$1@dont-email.me> <uuqtii$1v153$1@dont-email.me> <1e0d2587-f0e8-e80a-de3e-3fc04d0c563c@invalid.nospam>
Injection-Date: Sat, 06 Apr 2024 13:10:53 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a6f030f693504b4862f320cb9faf2bc8";
logging-data="2213857"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18v6AbqBCeTgken1P408ZDHi3Uasr0MZ8bf/AphLMNZoA=="
Cancel-Lock: sha1:TZmfTmtXO5uCrWmoQuZ5BHoRQyw=
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Response
X-Priority: 3
X-MSMail-Priority: Normal
 by: R.Wieser - Sat, 6 Apr 2024 13:05 UTC

Newyana2,

>> 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.

Why do you think it doesn't ? Have you already tried ?

> I tested a VBS in SendTo. WScript.Arguments(0) gets the full path of the
> right-clicked file.

In the above solution the full path of the file will be appended to that
line (by the .lnk mechanism).

If you want to test that you could, in a shortcut, try "cmd /c echo the file
is : ".

hmmm... that might be a problem, as the console window will close
immediatily after executing the echo. Ah yes, ofcourse: change the "/c" to
a "/k".

For bonus select two (or more) files and drag-and-drop them onto the
shortcut. :-) Also works when you select multiple files and use "SendTo".

> 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.

I take it you mean you want to change the icon of what is placed in the
SendTo folder. For shortcuts changing the icon is easy. In my OS (XP) I
cannot do that for a VBScript file or alike. In that case I store such
scripts elsewhere, and put a shortcut to them into the SendTo folder.

> 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.

In that case you might also consider a program which will monitor a folder
for changes, and if so copy the changed file(s) to another one.

Regards,
Rudy Wieser

Re: SendTo 2 locations

<uurhkt$23hv1$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=80762&group=alt.comp.os.windows-10#80762

  copy link   Newsgroups: alt.comp.os.windows-10
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.comp.os.windows-10
Subject: Re: SendTo 2 locations
Date: Sat, 6 Apr 2024 15:10:46 +0200
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <uurhkt$23hv1$2@dont-email.me>
References: <uup7mk$1fgr9$1@dont-email.me> <uupa4o$1g48f$1@dont-email.me> <uuqtii$1v153$1@dont-email.me> <uurbaf$223l9$1@dont-email.me>
Injection-Date: Sat, 06 Apr 2024 13:10:53 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a6f030f693504b4862f320cb9faf2bc8";
logging-data="2213857"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+md3beuwKhB/ZaL3uKilSKjyYg18p5HAAMt5VHwm2jKQ=="
Cancel-Lock: sha1:Jzocdgx1ayIsmgpXTZYWkvOnNQY=
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-Priority: 3
X-MSMail-Priority: Normal
 by: R.Wieser - Sat, 6 Apr 2024 13:10 UTC

Mike,

> As already suggested by Big Al, all that is needed is a batch file in the
> SendTo folder.

The problem with that is that neither Big Al nor you have bothered to
actually read the first post.

If you would have you would have noticed that Newyana2 wrote that he already
could "do it by putting VBScripts into the SendTo folder".

IOW, /he already has/ such a solution.

Regards,
Rudy Wieser

Re: SendTo 2 locations

<uurk99$245ar$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=80763&group=alt.comp.os.windows-10#80763

  copy link   Newsgroups: alt.comp.os.windows-10
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.comp.os.windows-10
Subject: Re: SendTo 2 locations
Date: Sat, 6 Apr 2024 15:55:48 +0200
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <uurk99$245ar$1@dont-email.me>
References: <uup7mk$1fgr9$1@dont-email.me> <uupa4o$1g48f$1@dont-email.me> <uuqtii$1v153$1@dont-email.me> <1e0d2587-f0e8-e80a-de3e-3fc04d0c563c@invalid.nospam> <uurhks$23hv1$1@dont-email.me>
Injection-Date: Sat, 06 Apr 2024 13:55:53 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a6f030f693504b4862f320cb9faf2bc8";
logging-data="2233691"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19eSnYEecAjVmWunJ76M8aDlF64sPr/ldRJMs0uuJLQAw=="
Cancel-Lock: sha1:BYPatY66o/YqaiPEse83I2D9Hpg=
X-MSMail-Priority: Normal
X-RFC2646: Format=Flowed; Original
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
 by: R.Wieser - Sat, 6 Apr 2024 13:55 UTC

Newyana2,

> 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
....

IOW, I think that in your case you can't use my single-line .lnk solution,
and your vbscript one is the better one.

Not that that is a bad thing, 'cause batch has a problem with strings - or
more precise : with "control characters" embedded in them. For funzels just
put a "&" in the middle of a filename and try a simple "cmd /c wordpad
{thefilename}" with it. Same-ish for "^" and a few others.

Regards,
Rudy Wieser

Re: SendTo 2 locations

<uv0dj5$3dp9j$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=80771&group=alt.comp.os.windows-10#80771

  copy link   Newsgroups: alt.comp.os.windows-10
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.comp.os.windows-10
Subject: Re: SendTo 2 locations
Date: Mon, 8 Apr 2024 11:32:07 +0200
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <uv0dj5$3dp9j$1@dont-email.me>
References: <uup7mk$1fgr9$1@dont-email.me> <uupa4o$1g48f$1@dont-email.me> <uuqtii$1v153$1@dont-email.me> <1e0d2587-f0e8-e80a-de3e-3fc04d0c563c@invalid.nospam> <uurhks$23hv1$1@dont-email.me> <uurk99$245ar$1@dont-email.me>
Injection-Date: Mon, 08 Apr 2024 09:32:22 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="565524cf75498d7a40a550606e184ae9";
logging-data="3597619"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX194fxceElAChLhq3K9VWOA3FWmKK94yk00oNlcnl70N1Q=="
Cancel-Lock: sha1:wWqA6hOTBI3Eodh0RqiElZ1uRc0=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Priority: 3
X-RFC2646: Format=Flowed; Response
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MSMail-Priority: Normal
 by: R.Wieser - Mon, 8 Apr 2024 09:32 UTC

Newyana2,

> 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
> ...

As far as I can tell the following will work :

cmd /c for %a ("{path1}" "{path2}") do cd %a ^& copy

(notice the use of "^&")

In other words: change to the target folder first, than copy (into that
folder) the source file. Should also work when you select multiple files.

Regards,
Rudy Wieser

Re: SendTo 2 locations

<MPG.407ddad8d878f145989ac7@news.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=80772&group=alt.comp.os.windows-10#80772

  copy link   Newsgroups: alt.comp.os.windows-10
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: PhillipHerlihy@SlashDevNull.invalid (Philip Herlihy)
Newsgroups: alt.comp.os.windows-10
Subject: Re: SendTo 2 locations
Date: Mon, 8 Apr 2024 11:44:12 +0100
Organization: A noiseless patient Spider
Lines: 74
Message-ID: <MPG.407ddad8d878f145989ac7@news.eternal-september.org>
References: <uup7mk$1fgr9$1@dont-email.me> <uupa4o$1g48f$1@dont-email.me> <uuqtii$1v153$1@dont-email.me> <1e0d2587-f0e8-e80a-de3e-3fc04d0c563c@invalid.nospam>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 08 Apr 2024 10:44:12 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="15b657042ab21a53ffd7bc7975ea347f";
logging-data="3623926"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18XxnmR6896cN9jK9/kId1Tq9HtpSZ5D/o="
User-Agent: MicroPlanet-Gravity/3.0.10 (GRC)
Cancel-Lock: sha1:9orrROg8fAHat1RJm0kcJlbkYFc=
 by: Philip Herlihy - Mon, 8 Apr 2024 10:44 UTC

In article <1e0d2587-f0e8-e80a-de3e-3fc04d0c563c@invalid.nospam>, Newyana2
wrote...
>
> 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.

Interesting question: the answer to your original question is no. A link
(including shortcuts, junction points, etc) will provide a further independent
address pointing to a single existing location; whereas ideally you want a
single address pointing to two independent locations. No such thing in Windows
(that I'm aware of!). So some sort of scripting is your only answer, as you've
already tried. (Note VBScript is being deprecated and will disappear from W11
before that long - think PowerShell perhaps.)

I see you want more than just backup, in which case I'd have plugged the
invaluable File History, which seems to me to get less mention than it deserves
- I think it's wonderful!

You're wanting to copy nuggets of information to different folders. But a
folder is only really a sort of "index", and that can be achieved without the
risks of copying the data. (If you copy an article, and find that there's a
mistake in it, you could end up with one version corrected and one uncorrected
- it's something to be avoided generally.) So maybe thinking more in terms of
maintaining indexes to your records might be appropriate. One way is to store
the file in one place and put shortcuts in the other folders to which it might
seem relevant. Or go a step further and maintaining your indexes as documents
which contain those shortcuts (giving the option of adding comments). If you
take that to its logical conclusion you end up where I'm happy to find myself.
I almost never store "snippets" as files; I put them in my well-structured
OneNote hierarchy, where I can use formatting for emphasis, add notes, and
cross-link to and from other locations in OneNote. If a file is bulky I'll
identify a suitable folder (just one) and then include a link to the folder in
all the OneNote pages which need it. With a nice little symbol so I can spot
it easily. I think of OneNote as "the index to my life" and couldn't live
without it now.

One little problem I had to solve might be of interest, given that you asked
about links. I put just about everything in OneDrive, which syncs beautifully
across my various devices, so I can walk away from my PC (after a quick sync
check), pick up my laptop in another building, and carry on what I was doing.
But MS, in its wisdom, tends to give the same MS account different filesystem
addresses for the account in the \Users folder. So the links didn't work.
Now, on any new device, if the original folder on my main machine is, say:
C:\Users\FOO\OneDrive\Meetings
.... and the new device has my OneDrive account at:
C:\Users\BAR\OneDrive\Meetings
.... I simply create a hard link C:\Users\FOO pointing to C:\Users\BAR, and hey-
presto all my links work.

Not the suggestions you'd have been expecting, I figure!

--

Phil, London

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor