Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

USB - based TCC question

May
3,515
5
Anyone has a suggestion how a USB-based TCC (inikey version, of course) can
be made to operate regardless of the drive letter assigned to the USB drive
on the specific system?
--
Steve
 
Steve,

I've never tried the INI key version. How is the drive letter being used?
Are there absolute paths in the INI file? Have you tried changing the
absolute paths to relative paths?

e.g. I:\Tcmd.ini => .\Tcmd.ini

-Scott

"JP Software Forums" <[email protected]> wrote on 10/01/2008 01:19:16 PM:


> Anyone has a suggestion how a USB-based TCC (inikey version, of course)
can

> be made to operate regardless of the drive letter assigned to the USB
drive

> on the specific system?
> --
> Steve
>
>
>
>
>
>
>
 
Anyone has a suggestion how a USB-based TCC (inikey version, of course) can
be made to operate regardless of the drive letter assigned to the USB drive
on the specific system?

Doggone it, the wiki's gone now. Let's see... (google google, copy paste)

web.archive.org/web/20071206103439/jpsoftwiki.com/wiki/index.php?title=4NT_on_a_stick
 
Last edited by a moderator:
web.archive.org/web/20071206103439/jpsoftwiki.com/wiki/index.php?title=4NT_on_a_stick

That info is a little dated now, of course. The inikey file replaces TakeCmd.dll, not 4NT.EXE. The autoplay stuff still works on XP SP3, but I don't think it works under Vista. (Bad Vista - no cookie!) You'll probably want to launch TCC.EXE instead of 4NT.EXE. (Or you can launch TCMD.EXE, but you may have to adjust windows sizes and placement, hotkeys, etc. for each machine you run it on. The inikey version still stores that stuff in the registry.)
 
JP Software Forums" <[email protected]>; "samintz wrote:
| Steve,
|
| I've never tried the INI key version. How is the drive letter being
| used? Are there absolute paths in the INI file? Have you tried
| changing the absolute paths to relative paths?
|
| e.g. I:\Tcmd.ini => .\Tcmd.ini

Thanks for the response.

The relative paths don't work in the INCLUDE directive, nor in the
invocation command specifying the name and location of the configuration
file. In earlier versions (V7 and before, don't remember about V8) the
configuration file could be specified without a path, if it was in the
startup directory (which did not need to be the location of 4NT.EXE). I
never tried /@.\x.ini however, it's certainly worth a try.
--
Steve
 
JP Software Forums" <[email protected]>; "Charles Dye wrote:
| ---Quote (Originally by Steve Fábián)---
| Anyone has a suggestion how a USB-based TCC (inikey version, of
| course) can be made to operate regardless of the drive letter
| assigned to the USB drive on the specific system?
| ---End Quote---
| Doggone it, the wiki's gone now. Let's see... (google google, copy
| paste)
|
|
[/URL]

Thanks, I found it, and copied it to my own system so I can read it at my
leasure.
--
Steve
 
JP Software Forums" <[email protected]>; "Charles Dye wrote:
| ---Quote (Originally by Charles Dye)---
|
[/URL]
| ---End Quote---
| That info is a little dated now, of course. The inikey file replaces
| TakeCmd.dll, not 4NT.EXE. The autoplay stuff still works on XP SP3,
| but I don't think it works under Vista. (Bad Vista - no cookie!)
| You'll probably want to launch TCC.EXE instead of 4NT.EXE. (Or you
| can launch TCMD.EXE, but you may have to adjust windows sizes and
| placement, hotkeys, etc. for each machine you run it on. The inikey
| version still stores that stuff in the registry.)


Thanks!

I don't even use TCMD at home, so it is not one I'd use elsewhere.

I don't know yet whether or not I need to deal with Vista. If so, I'll have
to figure out how...
--
Steve
 
Last edited by a moderator:
Anyone has a suggestion how a USB-based TCC (inikey version, of course) can
be made to operate regardless of the drive letter assigned to the USB drive
on the specific system?
--
Steve

I use a .cmd file that sets a few key environment variables, then my %path%, 4start.btm and alias/function/set files reference those variables instead of hardcoded paths.

In batch files I'm used to define paths relative to %@path[%_batchname].

You may also want to start TCC from a portable menu utility (there are many free ones), because they usually provide a special variables set to the current USB drive letter.
 
Steve,


> > Anyone has a suggestion how a USB-based TCC (inikey version, of
> > course) can be made to operate regardless of the drive letter
> > assigned to the USB drive on the specific system?

Take a look at [title] . You
can enable autostart for USB drives.


Then a @full[%0] in e.g. TCCStart.btm should give you the current drive
letter. You could parse that and take it from there.

* Klaus Meinhard *
4DOS Info - Info for DOS
www.4dos.info
 
JP Software Forums" <[email protected]>; "K_Meinhard wrote:
| Take a look at
|
| . You can enable autostart for USB drives.
|
|
| Then a @full[%0] in e.g. TCCStart.btm should give you the current
| drive
| letter. You could parse that and take it from there.

Thank you and all the others. This is an aspect of JPsoft program operation
I had not had previous reason (nor opportunity) to try.

I have long been using "relative addressing" for my paths, using a
per-system "LOCAL.SET" file parsed by SET /R to set variables to critical
directories. I learned to do things this way when I had accounts on multiple
time-shared computers, and my "home" directory was not the same on any two
of them. I separated my batch programs into generic ones, and into ones
needed only on a single system. The ones only needed locally went into a
subdirectory LOCAL (nowadays I shortened it to LOC), all others into UTIL.

The way I see it the major problems with the usb-stick is that an absolute
path is needed to start it - unless you use autorun. Once you are past that
you probably need a quick-launch or desktop icon for repeated use, but you
don't want to leave it there when the stick is removed; though this is not
critical - the icons change to an "unreachable program" icon whenever the
desktop is refreshed and the stick is not ready. To create these icons you
probably need to run a TCC batch file, which creates them with absolute
paths. I think the best place to do this is the batch program started in
autorun.
--
Steve
 

Similar threads

Back
Top