China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 08:59
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Repost: Running DOS applications with selected command-line parameters View 1,442 Replies 1
Original Poster Posted 2002-10-28 00:00 ·  中国 广东 佛山 三水区 电信
元老会员
★★★★
Credits 5,170
Posts 1,637
Joined 2002-10-16 00:00
23-year member
UID 8
Gender Male
From 广东佛山
Status Offline
Running DOS applications with selected command-line parameters
(Foshan Net www.foshaninfo.com)
Original author:
Source: unknown

Content:
Hu Jincheng
  Everyone knows that most applications under DOS provide quite a few command-line parameters. We can use these command-line parameters to control the running state of the corresponding application, achieving very good practical results. But Windows 98 is a graphical operating system; we only need to double-click an application in the graphical interface to start it, and the system gives us no chance at all to enter command-line parameters. Switching to DOS mode and then executing these commands can achieve the goal, but the operation seems too troublesome. Isn't there any simpler way? In my daily use I worked out a way to use a question mark "?" to solve the problem of being unable to enter application command-line parameters under the Windows 98 graphical interface. I will now introduce it to everyone (using the text editing software EDIT under DOS as an example):




  1) Right-click a blank area of the desktop, then from the pop-up shortcut menu's "New" item execute the "Shortcut" command to open the "Create Shortcut" dialog box.
  2) In the "Command line" field, enter the command name of the corresponding application, such as EDIT (users can also use the "Browse" button to select it).

  3) In the subsequently displayed "Select a title for the program" field, enter the corresponding program title (for display).

  4) Click the "Finish" button to create a shortcut for this application on the desktop.

  5) Right-click this shortcut, then execute the "Properties" command from the pop-up shortcut menu to open the corresponding program properties settings box.

  6) Click the "Program" tab.

  7) Add a space and a question mark in the "Command line" field (for EDIT, this means changing the original "D:\WINDOWS\COMMAND\EDIT.COM" to "D:\WINDOWS\COMMAND\EDIT.COM ?".

  8) Click the "OK" button to close the corresponding program properties settings box.

  In this way we have completed the setup steps for entering command-line parameters when running DOS applications under the Windows 98 graphical interface. From then on, we only need to double-click the shortcut on the desktop, and the system will open the command-line parameter input box (as shown in the figure), asking the user to enter the relevant command-line parameters. We only need to enter them directly, thus meeting the user's needs.
我的网志
http://hzmys.blog.163.com/
我的网盘
firststep.qjwm.com
fsmys.ys168.com
ssmys.ys168.com
www.brsbox.com/fsmys
www.brsbox.com/ssmys
www.brsbox.com/ccdos
Floor 2 Posted 2005-12-25 01:18 ·  中国 江西 南昌 电信
新手上路
Credits 4
Posts 2
Joined 2005-12-25 00:25
20-year member
UID 47817
Gender Male
From 河南*周口
Status Offline
Thanks
Forum Jump: