O
omega
Sietse Fliege said:Hello Karen,![]()
Hello Sietse !
Note #1: You can also simply have trid.exe (without PathToTrid)
Note #2: In case of one or more (seperate) spaces in path and/or file
name, the quotes around "%1" serve no purpose.
Better: trid.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
Note #3: In WinXP the console window closes.
One needs to have e.g. pause at the end.
So my trid.cmd (WinXP) reads:
-----trid.cmd-----
trid.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
pause
-------------------
Re: Note #3. Good that you included that difference, for NT/CMD users.
That which is reverse of 9X/command.com, where console window stays
open by default (except for extra bats invoked by CALL), and one needs
to explicitly set the properties in a pif, for close on exit, else have
launched from some external means (like with command /c).
Re: Note #2. This sounds like an important fundamental. I have used
the %1 %2 %3 %4 %5 %6 %7 %8 %9 in the past, when multiple arguments
were involved. It sounds like I ought well take the consistent habit
of that string. I can easily set it up in my tray clipboard utility
that I use for routine text. As to surrounding the %1 in quotes, I
right now have learnt what you mean. That it has no need. It is only
needed in certain other contexts, such as in setting up lnks and
explorer-menu commands, where some programs need the %1 in quotes.
Contexts separate from realm of bat/cmd files.
Re: Note #3. Looking that over, I must have appeared very silly. To
have something so redundant, the bat sitting in the folder with the
exe, and yet my having the full path to the exe in the path there.
I can only plead to be believed: I don't normally do that, and in
fact most all of my bats are "local."
On that situation, though, there is one issue that comes up for me.
I run things frequently via the drive/folder toolbars set up on the
startmenu. I cannot from there click on a bat to run it, since that
does not set me in its local path. It is a time like that where I
need an absolute path.
I have set up an explorer context menu for that situation, to be able
run my bats (specifically my pifs, those many I have that are also
local, without paths), when invoking them from theo startmenu drives
toolbars. When I set it up, it was kind of a tricky subject for me.
I finally had to resort to a hack, where an accompanying action is
that an instance of explorer is opened up in that folder, and it's
that act which changes path so that the pif/bat knows where to run from.
The circumstance where I use these, I happen to actually prefer most
times getting the explorer window. However, it is also true that I knew
no other way to get this done.
The paragraph above is pretty elliptical, might be totally incoherent.
At the point where I commit to getting help on that situation, I'll need
to rewrite my question slowly. And I suppose I'd have to post it in a
batch groups, something I'm inclined to continue procrastinating.