Help to create a DOS shortcut for LTrunk

Status
Not open for further replies.

ECPD279

Member
Premium Subscriber
Joined
Jul 9, 2002
Messages
820
Reaction score
57
Location
Bay Area, CA
I have thoroughly forgotten all DOS programming that I once knew. I must therefore ask the group a question.

Is there a way to make a shortcut in windows, for a DOS prompt that will include some tertiary commands. What I have to do now is open a command prompt and type in

ltrunk -p com1 -t dsr

because simply clicking on ltrunk.exe is not sufficient to include the neccessary parameters. Anyone familiar with how to do this? I hope this makes sense to someone other than me.
 

CAT

Member
Joined
May 12, 2002
Messages
73
Reaction score
0
Here’s how....

At a DOS prompt type....


copy con lt.bat
ltrunk -p com1 -t dsr
^z


“^z” is Control-Z in case it doesn’t display right. This will create a batch file on your drive called “LT” to run it all you have to do is double-click it or open a DOS window and type “LT” -- You may need to add a “chdir” (change-directory) before the ltrunk command if ltrunk isn’t in the search path.
 

pro92b

Mutated Member
Premium Subscriber
Joined
Jun 27, 2002
Messages
2,010
Reaction score
275
Try using a batch file. In Notepad create a new file containing the line
Code:
C:\ltrunk\ltrunk -p com1 -t dsr
That assumes you have Ltrunk in a folder on the C: drive and the folder is called Ltrunk. Change the path as needed for your situation. Save the batch file to drive C: using Save As and call it Ltrunk.bat. Open Explorer and point it to the C: drive. Click and hold on Ltrunk.bat and drag it to the desktop. That should create a shortcut on the desktop. Double click on the shortcut to start Ltrunk.
 

Stupidfatkid

Member
Joined
Apr 26, 2004
Messages
174
Reaction score
72
Location
Kansas
This is what I did.

If you're running Windows 98 you can create a shortcut on your desktop that will shutdown Windows 98 to DOS mode and execute Ltrunk with the "-p com1 -t dsr" attributes. Plus, when you exit out of Ltrunk it will automatically start Windows 98 backup. This is how I setup eTrunker to work on my machine and I like it a lot.

This is how to do it.

Navigate, in Windows, to the location of your Ltrunk exe. Drag and drop a shortcut to your desktop. Right click on the shortcut and select "Properties". On the Properties windows click the "Program" tab. You should see a line labeled "Cmd line". Add the "-p com1 -t dsr" to the end of that line (this is the command line that DOS will execute as if you typed it in DOS). Now click on the "Advanced" button. Check the box that says "MS-DOS Mode". You can either check or uncheck the box "Warn me before entering MS-DOS mode". Click on "OK" and "OK" again to get back to your desktop.

Now when you want to run Ltrunk just double click the shortcut and Windows should shutdown to MS-DOS and run the program with the attributes specified on the "Cmd Line".

Hopefully this is what you were alluding to in your post.

Stupidfatkid

http://www.stupidfatkid.com
 

ECPD279

Member
Premium Subscriber
Joined
Jul 9, 2002
Messages
820
Reaction score
57
Location
Bay Area, CA
I'm running Windows 2K. Anywho, I have the batch file working beautifully. Thanks.
 
D

DaveNF2G

Guest
Re: This is what I did.

Stupidfatkid said:
If you're running Windows 98 you can create a shortcut on your desktop that will shutdown Windows 98 to DOS mode and execute Ltrunk

Here's my somewhat related question -

How do I get a Windows 98 SE machine to boot to either DOS or Windows from a bootup menu? My Windows 95 laptop does it, but the same setup on the 98 machine always starts Windows 98 regardless of my selection at bootup.
 

loumaag

Silent Key - Aug 2014
Joined
Oct 20, 2002
Messages
12,935
Reaction score
11
Location
Katy, TX
ECPD279 said:
I'm running Windows 2K. Anywho, I have the batch file working beautifully. Thanks.
Sid, don't forget you can assign a shortcut to that batch file and in it you can up how to run the program (window, full screen, etc.)
 

pro92b

Mutated Member
Premium Subscriber
Joined
Jun 27, 2002
Messages
2,010
Reaction score
275
Dave,

Here are the files I use to provide a menu for DOS or Windows.

First the config.sys file:

Code:
[MENU]
MENUITEM=WIN, Windows 98SE
MENUITEM=DOS, MS-DOS 7.10
MENUDEFAULT=WIN,10
[DOS]
DEVICE=C:\WINDOWS\HIMEM.SYS
DEVICE=C:\WINDOWS\EMM386.EXE RAM
DEVICEHIGH=C:\WINDOWS\COMMAND\ATAPICD.SYS /D:IDECD001
DOS=HIGH,UMB
FILES=20
BUFFERS=15,0
STACKS=0,0
LASTDRIVE=Z
[WIN]
LASTDRIVE=Z

And the autoexec.bat file:

Code:
@ECHO OFF
PROMPT $P$G
SET TRACKENV=C:\TRACKENV.TXT
GOTO %CONFIG%
:DOS
PATH C:\WINDOWS;C:\;C:\BAT;C:\WINDOWS\COMMAND
LH C:\WINDOWS\COMMAND\SHSUCDX /D:IDECD001
CTMOUSE
LH C:\WINDOWS\COMMAND\DOSEDIT
VER /R
GOTO END
:WIN
SET TRACKENV=C:\TRACKENV.TXT
VER /R
WIN.COM
GOTO END
:END


Finally the modified msdos.sys file:

Code:
[Paths]
WinDir=C:\WINDOWS
WinBootDir=C:\WINDOWS
HostWinBootDrv=C

[Options]
BootMulti=0
BootGUI=0
DoubleBuffer=1
AutoScan=1
WinVer=4.10.2222
;
;The following lines are required for compatibility with other programs.
;Do not remove them (MSDOS.SYS needs to be >1024 bytes).
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxa
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxb
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxc
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxd
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxe
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxf
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxg
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxh
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxi
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxj
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxk
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxl
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxm
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxn
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxo
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxp
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxq
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxr
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxs
 

loumaag

Silent Key - Aug 2014
Joined
Oct 20, 2002
Messages
12,935
Reaction score
11
Location
Katy, TX
Re: This is what I did.

DaveNF2G said:
How do I get a Windows 98 SE machine to boot to either DOS or Windows from a bootup menu? My Windows 95 laptop does it, but the same setup on the 98 machine always starts Windows 98 regardless of my selection at bootup.
In addition to the suggestion pro92b provided above, you can also just press F8 during the boot up sequence and you will be offered a menu of startup options.
 

pro92b

Mutated Member
Premium Subscriber
Joined
Jun 27, 2002
Messages
2,010
Reaction score
275
F8 should work on most machines but the timing for pressing F8 is critical. In my case the PC has three primary partitions controlled by Bootmagic and the F8 trick does not work.

I forgot to add that the config menu allows loading a DOS memory manager and drivers for the mouse and CD. Ordinarily those items should not be loaded when booting to Windows.
 
D

DaveNF2G

Guest
pro92b said:
I forgot to add that the config menu allows loading a DOS memory manager and drivers for the mouse and CD. Ordinarily those items should not be loaded when booting to Windows.

I wondered about that because that's part of what's in the files on the Win95 machine.

I've never modified the msdos.sys file - maybe that's the problem.
 

ECPD279

Member
Premium Subscriber
Joined
Jul 9, 2002
Messages
820
Reaction score
57
Location
Bay Area, CA
A bit off topic here but.....

Dave, whose 130 is that in your avatar? It looks like the Coasties but I've never seen them do a RATO.
 
D

DaveNF2G

Guest
ECPD279 said:
A bit off topic here but.....

Dave, whose 130 is that in your avatar? It looks like the Coasties but I've never seen them do a RATO.

It belongs to the 109th Airlift (ANG) based at Stratton ANGB in Schenectady, NY. This is the only C-130 unit capable of flying missions to Antarctica. When on local maneuvers, they use the appropriate callsign SKIER.

They did the rocket assist for the annual ESAM airshow.
 

ECPD279

Member
Premium Subscriber
Joined
Jul 9, 2002
Messages
820
Reaction score
57
Location
Bay Area, CA
Antarctica.....I guess that explains the RED! And incidentally the skis that I missed the first time. Cool pic.
 
Status
Not open for further replies.
Top