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. |
|
|
Thread Tools | Rate Thread | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 |
|
|