Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Programming is an unnatural act.


computers / alt.comp.os.windows-10 / Re: Edit the manpage for a Windows /? command example

SubjectAuthor
* Edit the manpage for a Windows /? command exampleMichael
+* Re: Edit the manpage for a Windows /? command exampleAndy Burns
|+* Re: Edit the manpage for a Windows /? command examplePaul
||+* Re: Edit the manpage for a Windows /? command exampleBill
|||`* Re: Edit the manpage for a Windows /? command examplePaul
||| `- Re: Edit the manpage for a Windows /? command exampleCarlos E.R.
||`- Re: Edit the manpage for a Windows /? command exampleCommander Kinsey
|`* Re: Edit the manpage for a Windows /? command examplegtr
| `* Re: Edit the manpage for a Windows /? command exampleAndy Burns
|  `- Re: Edit the manpage for a Windows /? command examplegtr
+* Re: Edit the manpage for a Windows /? command exampleVanguardLH
|`* Re: Edit the manpage for a Windows /? command exampleMichael
| `- Re: Edit the manpage for a Windows /? command exampleVanguardLH
+* Re: Edit the manpage for a Windows /? command exampleChar Jackson
|`* Re: Edit the manpage for a Windows /? command exampleStan Brown
| `- Re: Edit the manpage for a Windows /? command exampleChar Jackson
+* Re: Edit the manpage for a Windows /? command exampleZaidy036
|`* Re: Edit the manpage for a Windows /? command exampleCarlos E.R.
| `- Re: Edit the manpage for a Windows /? command exampleStan Brown
`* Re: Edit the manpage for a Windows /? command exampleHerbert Kleebauer
 `* Re: Edit the manpage for a Windows /? command exampleFreethinker
  +* Re: Edit the manpage for a Windows /? command exampleHerbert Kleebauer
  |`* Re: Edit the manpage for a Windows /? command exampleFreethinker
  | `* Re: Edit the manpage for a Windows /? command exampleHerbert Kleebauer
  |  `* Re: Edit the manpage for a Windows /? command exampleVanguardLH
  |   +* Re: Edit the manpage for a Windows /? command exampleHerbert Kleebauer
  |   |+- Re: Edit the manpage for a Windows /? command exampleFreethinker
  |   |+* Re: Edit the manpage for a Windows /? command exampleVanguardLH
  |   ||`* Re: Edit the manpage for a Windows /? command exampleFreethinker
  |   || +* Re: Edit the manpage for a Windows /? command exampleHerbert Kleebauer
  |   || |`* Re: Edit the manpage for a Windows /? command exampleFreethinker
  |   || | +- Re: Edit the manpage for a Windows /? command exampleBugsy
  |   || | `* Re: Edit the manpage for a Windows /? command exampleHerbert Kleebauer
  |   || |  `* Re: Edit the manpage for a Windows /? command exampleFreethinker
  |   || |   `* Re: Edit the manpage for a Windows /? command exampleHerbert Kleebauer
  |   || |    `* Re: Edit the manpage for a Windows /? command exampleFreethinker
  |   || |     `* Re: Edit the manpage for a Windows /? command exampleHerbert Kleebauer
  |   || |      `* Re: Edit the manpage for a Windows /? command exampleFreethinker
  |   || |       `* Re: Edit the manpage for a Windows /? command exampleHerbert Kleebauer
  |   || |        `- Re: Edit the manpage for a Windows /? command exampleFreethinker
  |   || `* Re: Edit the manpage for a Windows /? command exampleVanguardLH
  |   ||  `* Re: Edit the manpage for a Windows /? command exampleFreethinker
  |   ||   `* Re: Edit the manpage for a Windows /? command exampleVanguardLH
  |   ||    `* Re: Edit the manpage for a Windows /? command exampleFreethinker
  |   ||     `* Re: Edit the manpage for a Windows /? command exampleVanguardLH
  |   ||      +* Re: Edit the manpage for a Windows /? command exampleStan Brown
  |   ||      |`- Re: Edit the manpage for a Windows /? command exampleHeron
  |   ||      `- Re: Edit the manpage for a Windows /? command exampleFreethinker
  |   |`* Re: Edit the manpage for a Windows /? command exampleKen Blake
  |   | `- Re: Edit the manpage for a Windows /? command exampleFrank Slootweg
  |   `- Re: Edit the manpage for a Windows /? command exampleFreethinker
  `- Re: Edit the manpage for a Windows /? command exampleHerbert Kleebauer

Pages:123
Re: Edit the manpage for a Windows /? command example

<tvi08s$17omn$1@dont-email.me>

 copy mid

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

 copy link   Newsgroups: alt.comp.os.windows-10 alt.comp.microsoft.windows
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: freethin...@mymail.com (Freethinker)
Newsgroups: alt.comp.os.windows-10,alt.comp.microsoft.windows
Subject: Re: Edit the manpage for a Windows /? command example
Date: Thu, 23 Mar 2023 18:55:08 +0200
Organization: A noiseless patient Spider
Lines: 676
Message-ID: <tvi08s$17omn$1@dont-email.me>
References: <tuvchj$5gc$1@nnrp.usenet.blueworldhosting.com> <tv1r02$1vs6n$1@dont-email.me> <tv32hk$26uav$1@dont-email.me> <tv56qe$2ko5k$1@dont-email.me> <tv69b3$2srlp$1@dont-email.me> <tv6hr6$2u7om$1@dont-email.me> <sgs59wtdhttm.dlg@v.nguard.lh> <tv7dmd$33109$1@dont-email.me> <1mhys263xn7di.dlg@v.nguard.lh> <tvab0m$3leq1$1@dont-email.me> <1qertmfm5fp6w.dlg@v.nguard.lh> <tve3b7$ge9o$1@dont-email.me> <121ubbbwgd0uy.dlg@v.nguard.lh> <tvf5k3$lv7v$1@dont-email.me> <16nc2gvl44ejd$.dlg@v.nguard.lh>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 23 Mar 2023 16:54:56 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="5a250b7a2d8b5d3c078b2de13fb9ee95";
logging-data="1303255"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19EAJe369K/F1+kqdQQaZNN"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0
Cancel-Lock: sha1:FrDi1wlmxX0U6n9HJ57BiujdgoU=
Content-Language: de-DE
 by: Freethinker - Thu, 23 Mar 2023 16:55 UTC

On 23.03.23 02:18, VanguardLH wrote:
> I'm a bit of a neat freak. I don't like messes. That means not having
> 1 tier to the Start menu, but organized in folders for category of
> programs, and subfolders under there for each program. I've seen users
> scanning their eyes up and down in a long Start menu trying to find an
> entry. There is now a search (just start typing when the Start menu is
> display) but that requires you remember the first character(s) of the
> entry to find it in a results list from which you pick the one you were
> looking for. It's still better than having to scan a mess of 1-tier
> entries.
>
> I've tried pinned shortcuts, but don't like them. Consumes realestate
> in the Taskbar even when the programs are not running. There is an
> indicator showing if a pinned shortcut has a running instance of that
> program (it's a tiny indicator, like a blue bar along the top), but I
> dislike having my Taskbar polluted with shortcut icons for apps that
> aren't even running.
>
> I have a 2-row Taskbar. Bottom row is for toolbars (folders) for:
> QuickLaunch (emulate the old QuickLaunch toolbar), web browser,
> communication, info & games, security, tools, address bar. The 2-row
> setup also makes the systray bigger, so I get more clock data (time,
> day-of-week, mm/dd/yyyy), and 2 rows for systray icons (but I still hide
> many of them, just show the most used). Got rid of the Search box since
> it is superfluous. Just open the Start menu and start typing to get the
> same search results. The top row of the Taskbar is *only* to show
> currently running programs. I also have the Taskbar configured to group
> icons for the same program, and use the popup thumbnails to pick which
> in the same set on which to focus. I've played off and on with the
> auto-hide option, but found too many programs don't resize when the
> Taskbar is unhidden resulting in the bottom portion of the app's window
> getting obscured by the Taskbar, so I just stick with always-show for
> the Taskbar.
>
> If that level of organization is not sufficient, I will use the virtual
> desktop manager to group windows in a screen, like web browsing in one
> desktop, coding in another desktop, writing letters in another, playing
> a game in another, and so on. Windows 10's virtual screen manager is
> sufficient for me. Before that I used Dexpot. There have been times I
> wanted multiple monitors, but multiple desktops is good enough, so far.
>
> Pinned shortcuts to the Taskbar is for users that don't mind clutter.
> Instead of pinning shortcuts to the Taskbar, I have shortcuts in
> toolbars shown in the bottom row of a 2-row Taskbar. I can have a hell
> of lot more shortcuts in toolbar than pinned ones in the Taskbar. In
> fact, I purposely squash some toolbar to show a right-ward
> double-chevron to popup a list of more shortcuts that are normally
> hidden. For example, in the web toolbar that is squashed down to show
> only 1 icon (for Firefox), the chevron that displays the popup list
> shows: Firefox (private), Firefox (safe), Kill all Firefox, No Proxy,
> Microsoft Edge. There used to be more, but the list got pared down.
> Taskbar toolbars are a far better solution to shortcut access than using
> pinned shortcuts.

I'm probably as organized as you are, and maybe even more so as I don't
even need to use the Windows menus as I maintain my own taskbar menus.
>>> and you have to be familiar with all the subkeys under the
>>> AppPaths/<prog> subkey.
>>
>> App Paths is no more complex than the %path% is and you can save it once
>> inside the registry as a Favorite so you don't have to look for it again.
>
> Okay, let's test that claim. You already know the subkey under AppPaths
> has the syntax <progname>.exe. Under that subkey, what are the possible
> data item names and values? There can be more than just the "(Default)"
> key defining a path to the program. There can also be a PATH data item
> with a path value. What's the difference between (Default) and PATH
> data items? What other data items may be defined under the <progname>
> subkey? What are the SaveURL and UseURL data items for? How about the
> data items that are unique to a program? What are the sub-subkeys, if
> any, under the <progname> subkey for? Maybe they define multiple
> protocols supported by the program, or other arguments.

I think I mentioned it but maybe it was in that other thread titled
Subject: Random changing of "stuff" inside a Windows directory
Date: Tue, 21 Mar 2023

The only thing I know about the %App Paths% is the "@Default" value.
I've never delved any deeper so it's a credit to you that you have.

Herbert also found out that the key name "might" make a difference given
echo %pathext% => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

It may be that if I call an App Paths subkey "test.exe" it runs before
a "test.bat" in the %path% but if I call the App Paths subkey some other
extension, then the test.bat in the %path% might actually win out.

Even so, Herbert showed me that the App Paths is the last path, in that
it's added onto the %path%, just as you've whown me that the App Paths
subkey can also add its own temporary path to the %path% at runtime.

I don't deal with any of that so you know it now better than I do.

> I mentioned there is also the Applications registry key which has a
> similar purpose to the AppPaths registry key, except the Applications
> subkeys can have more data on identifying the program, and its
> attributes or arguments. I gave the MS article mentioned how
> Applications has more attributes than does AppPaths. Here it is again
> (with a pointer to the section on the Applications key):
>
> https://learn.microsoft.com/en-us/windows/win32/shell/app-registration#using-the-applications-subkey
>
> Do you have that document memorized, so you know how to properly define
> the <prognam> subkey along with all the data items that are appropriate
> for each program?

When you mentioned that, it was the first time I had heard of the
Applicaions subkey, but at the moment I haven't delved into it as I don't
know what good it can be used for. I can't think yet of why I'd need it.

What do you suggest using the Applications key for that I need to do?

>> For me, only the stuff I want to put in the App Paths go into the App
>> Paths sub key. Mostly those I wrote myself. Mostly files I use a lot.
>> Mostly directories I use a lot.
>
> AppPath entries cannot point at folders.

The funny thing is in Windows XP, the App Paths subkey DID open a folder!

Even funnier (in a sad way of course), that now-lost feature of the App
Paths subkey was precisely what turned me on to the App Paths subkey in the
first place.

It was so easy to create a single word to jump to often used folders in
those days. But in Windows 10 I have to point to "something else, which
opens the folder.

The good news is lots of "something elses" can open a folder, such as a
batch file with one line in it such as this one line for my archives.
%comspec% /k cd C:\path\archives\
The App Paths subkey allows the one word 'archives' to open that folder.
Win+R archives
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\archives.exe
@Default=C:\path\open_archives.bat

Opening the folder could just as well have been done with a shortcut.
@Default=C:\path\open_archives.lnk
Target=%comspec% /c %windir%\explorer.exe C:\path\archives

If you want, you could even open up multiple folders using the ampersand.

But what's interesting to note is that you still can open "some" folders.
Win+R tasks
Win+R fonts
Win+R security

> You're not using AppPaths to
> specify how to find all executables (and AppPaths never has done that
> even with all installers). It's up the installer as to whether or not
> it adds an AppPath/<progname>.exe subkey. For you, you're just adding a
> few AppPath subkeys for some of your programs. However, you're still
> editing the registry. regedit.exe is not a safe tool for editing the
> registry.

As I said, I have been editing the registry since it came out, and
therefore I'm kind of tired of all the "sky is falling" warnings.

You'd be shocked to know that in the WinXP days I'd move a hive from one
computer to another just by loading it into it, but I don't do that now.

> There is no undo. If you delete something, it's gone forever. If you
> make a mistake in the registry, you'll have to restore from an image
> backup (you cannot individually restore the registry files since even
> admin users won't have permissions), or always remember to export the
> registry (or, at least the parent key under which you intend to edit) to
> save a .reg file that you can use to restore back to before your screw
> up. When editing the registry, all changes are immediate. Some
> changes, like under HKU, require you to logout and log back into your
> Windows account to effect the changes. When Windows loads, it reads the
> HKLM and HKC hives, and when you log into a Windows account the
> HKU/<sid> hive is read. The registry is read from files, but stored in
> memory for fast binary access. Registry API calls are against the
> memory copy, but editing is against the files, so you need to get the
> files to overwrite the memory copy. Sometimes F5 (refresh) will work,
> or exiting the registry editor which does the refresh. Yet sometimes
> you have to logout and login, or even restart Windows, to effect the
> changes. The biggest danger to editing the registry is the lack of an
> Undo. No matter how much anyone professes to be an expert or uber-guru,
> we all mistakes, like deleting the wrong stuff. Editors accomodate our
> mistakes by having Undo (and often multiple undo through a history
> feature). No undo when registry editing. Oops! Shit!
> With editing a .bat file, you always have Undo (Ctrl+Z) to get back what
> you deleted. And nothing is effected until you later run the batch
> script.


Click here to read the complete article
Re: Edit the manpage for a Windows /? command example

<tvjb5v$1hgsq$1@dont-email.me>

 copy mid

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

 copy link   Newsgroups: alt.comp.os.windows-10 alt.comp.microsoft.windows
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: freethin...@mymail.com (Freethinker)
Newsgroups: alt.comp.os.windows-10,alt.comp.microsoft.windows
Subject: Re: Edit the manpage for a Windows /? command example
Date: Fri, 24 Mar 2023 07:07:26 +0200
Organization: A noiseless patient Spider
Lines: 68
Message-ID: <tvjb5v$1hgsq$1@dont-email.me>
References: <tuvchj$5gc$1@nnrp.usenet.blueworldhosting.com> <tv1r02$1vs6n$1@dont-email.me> <tv32hk$26uav$1@dont-email.me> <tv56qe$2ko5k$1@dont-email.me> <tv69b3$2srlp$1@dont-email.me> <tv6hr6$2u7om$1@dont-email.me> <sgs59wtdhttm.dlg@v.nguard.lh> <tv7dmd$33109$1@dont-email.me> <1mhys263xn7di.dlg@v.nguard.lh> <tvab0m$3leq1$1@dont-email.me> <tvav68$3ooq5$1@dont-email.me> <tve1f5$g5kj$1@dont-email.me> <tvehle$ik90$1@dont-email.me> <tvf745$m7oc$1@dont-email.me> <tvfafs$mqem$1@dont-email.me> <tvfido$o7t5$1@dont-email.me> <tvfmt7$oppi$1@dont-email.me> <tvg7o6$roj8$1@dont-email.me> <tvh4el$12utl$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 24 Mar 2023 05:07:11 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b7eb98ff415d924352a04c6e7f7a4846";
logging-data="1622938"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18wgpoU4NqsM+YSsZL/dR93"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0
Cancel-Lock: sha1:finqu/rl2xTcMIX7kIxVZ8BEkPQ=
Content-Language: de-DE
 by: Freethinker - Fri, 24 Mar 2023 05:07 UTC

On 23.03.23 11:00, Herbert Kleebauer wrote:
> On 23.03.2023 01:50, Freethinker wrote:
>
> > It's only after I rename the App Paths "test.exe" to something other than
> > "test" that the %path% wins out over my App Paths in that specific test.
>
> I did only a quick testing (so I may be wrong) but as I see it:

I appreciate the testing as it's confusing what the sequence is
given the document said the App Paths was after the %path% but my specific
test showed under that circumstance, the %path% was after the App Paths.
> If you use "start progname" it use %PATH% first and then "App Path"
> If you use "<WIN>-r progname" it use "App Path" first and then %PATH%

Oh. Well. That might be it. I never use "start progname" as I always
use the Win+R shortcut pinned to my taskbar and then the progname.
> The first place in the above search order it finds an executable,
> it is executed (no matter whether it is a com exe or bat). Only
> if there are more executable in this directory, the order is
> .com , .exe, .bat

This is only slightly confusing because it applies only to the
"start progname" I think, as usually with App Paths you specify the
full filespec (where that filespec can be to a .com, .exe, .bat,
or even to any file such as a .txt .ppt or .lnk or whatever).

> If you open a CMD window and type
> wordpad
> you get a not found message (because it is not in the %PATH%).
> If you use
> start wordpad
> Wordpad is started (I suppose, because of the "App Path" entry)
> <WIN>-r wordpad also starts Wordpad.

I just tried all three and I agree with you on all three.
cmd> wordpad
fails
cmd> start wordpad
works
Win+R wordpad
works

This is what I found in the registry for App Paths.
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WORDPAD.EXE
@Default="%ProgramFiles%\Windows NT\Accessories\WORDPAD.EXE"

> Now create a wordpad.bat in a PATH-directory with the content "pause".
> "wordpad" and "start wordpad" now start the batch.
> Whereas "<WIN>-r wordpad" still starts Wordpad.

I'll take it from you that your summary is correct on the path order.
start progname ==> puts %path% in front of App Paths
Win+R progname ==> puts App Paths in front of %path%

Then, of course, there's the case of the ability to temporarily extend
the path which I found an example of put there by Microsoft I guess.
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Winword.exe
@Default=C:\Program Files\Office12\WINWORD.EXE
@Path=C:\Program Files\Office12\
@SaveURL= string value of 1
@useURL= string value of 1

In a way, that Microsoft Office entry exemplifies the best of both worlds
in that we can presume Winword.exe, once run from the App Paths, will run
through the %path% first for things it calls out, and then it will look in
its own folder which it temporarily added to the path in the App Paths.

Pages:123
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor