A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Windows 10 » Windows 10 Help Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

What syntax combines 2 commands into a single shortcut TARGET line?



 
 
Thread Tools Rate Thread Display Modes
  #1  
Old August 29th 19, 08:08 AM posted to alt.comp.os.windows-10,alt.msdos.batch,comp.os.msdos.programmer
R.Wieser
external usenet poster
 
Posts: 1,302
Default What syntax combines 2 commands into a single shortcut TARGET line?

Oh. My. God.

Again one of those "lets just **** all over the newsgroups" posts of our
resident brainiac.

Kudos to you kid, you are to dumb to even realize that MSDOS doesn't have
anything resembling shortcuts. Let alone that "veracrypt" isn't available
for DOS. In short: No help to be expected from MSDOS users, batch or
otherwise.

Besides: How hard is it to realize that you can, as Grant already indicated,
use the link to start a batch file (or any other kind of script! PowerShell
perhaps ?) to do some multi-line commands (or maybe even create a (batch
style, single-line!) loop over the involved drive letters).

Combining them with "&" and "&&" in a single shortcut
TARGET line garners: "VeraCrypt: Error while parsing
command line."


Little wonder brainiac, as stitching commands together using "&" or "&&" is
only valid on the commandline and has no meaning in the rest of Windows.
Didn't you know ?

But if you really /have/ to do it that way just shortcut to CMD.EXE and have
it execute that commandline. Problem solved.

Regards,
Rudy Wieser

P.s.
removed: alt.comp.freeware. Reason: Too many xpost groups


Ads
  #2  
Old August 29th 19, 05:22 PM posted to alt.comp.os.windows-10,alt.msdos.batch,comp.os.msdos.programmer
Mayayana
external usenet poster
 
Posts: 6,438
Default What syntax combines 2 commands into a single shortcut TARGET line?

"R.Wieser" wrote

| Oh. My. God.
|
| Again one of those "lets just **** all over the newsgroups" posts of our
| resident brainiac.
|

No point getting upset. No point trying to shame him
or give him a rational answer. He only posts to hear
himself talk. All you can do is add his latest pseudonym
to your blocked senders list.



  #3  
Old September 1st 20, 07:07 AM posted to alt.comp.os.windows-10,alt.msdos.batch,comp.os.msdos.programmer,alt.comp.freeware
Arlen Holder
external usenet poster
 
Posts: 186
Default What syntax combines 2 commands into a single shortcut TARGET line?

QUESTION about TARGET multi-line-command syntax

1. This works from the Windows command line to kill all the users' tasks:
Win+R cmd {ctrl+shft+enter}
taskkill /f /fi "USERNAME eq %COMPUTERNAME%\%USERNAME%" /IM *

2. That also seems to work just fine from a shortcut TARGET line:
TARGET = taskkill /f /fi "USERNAME eq %COMPUTERNAME%\%USERNAME%" /IM *
START IN: C:\Windows\system32

3. It also seems to work in a comspec cmd (needed for multiple commands):
TARGET = %comspec% /c taskkill /f /fi "USERNAME eq %COMPUTERNAME%\%USERNAME%" /IM *
START IN: C:\Windows\system32

4. But it doesn't seem to work in multi-command shortcut comspec syntax:
TARGET = %comspec% /c "echo off | clip" & veracrypt /dismount /force /q & taskkill /f /fi "USERNAME eq %COMPUTERNAME%\%USERNAME%" /IM *
START IN: C:\Windows\system32

Q: What syntax change is needed to get that multi-line comspec cmd to work?

See also:
o Tutorial for creating cclip & killall clearing the Windows clipboard & killing users' tasks in one fell swoop
https://groups.google.com/forum/#!topic/alt.msdos.batch/DqBXiTJ6FA0
--
Sometimes you need just a little bit of syntactical help to get it working.
 




Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 08:26 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.