i have a dos batch file, do some routine stuff.
if textpad has command-line feature, i could call textpad to search text in the dos batch file. that will be cool.
thanks
does textpad has command-line command feature?
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
You will need to use FIND or another program for command line searches. But TextPad does have command line parameters. From the HELP file:
======================
======================
Command Line Parameters
The command line parameters listed below can be used to start TextPad. They are not case sensitive, but must appear before any file names. Surround any parameters containing spaces with quotation marks ("). Because some of the parameters are mutually exclusive, conflicts are resolved by using the last option specified. Any other parameters are silently ignored. The switch character can be '/' or '-' as shown:
Parameter Description
-av Arrange windows vertically tiled.
-ah Arrange windows horizontally tiled.
-ac Arrange windows cascaded.
-am Arrange windows maximized.
-ca Open any specified file name parameters in the ANSI code set.
-cd Open any specified file name parameters in the DOS code set.
-i Start minimized (iconized).
-l# User interface language, where # is: 7=German, 9=English, 10=Spanish, 12=French, 16=Italian, 17=Japanese, 21=Polish, 25=Russian.
-m Start another instance, regardless of the setting for "Allow multiple instances".
-ol Set landscape orientation for printing.
-op Set portrait orientation for printing.
-p "file" Print the specified file using default printer.
-q Don’t display startup "splash" message.
-r Open any files in the command line as read only.
-s Started by a DDE shell command.
-t "title" Append "title" to the main window title bar.
-u filename Open the file, whose name can contain spaces, but does not need to be quoted.
@filename Open all the files that are listed, one per line, in the specified file. This overrides the option to load the workspace, specified on the General page of the Preferences dialog box.
Notes:
Except when using the -p option, multiple filenames and/or wildcards can follow these command parameters, but they must be quoted to allow for filenames containing spaces.
An empty, quoted filename (i.e. "") causes a new document to be created.
If the filename to be edited (not printed) is followed by "(<line>[,<col>])", with no intervening spaces, the file will be opened with the cursor at that position. If <line> is a hex number (eg. 0x1a22), a hex view of the file will be created, with the cursor at that address.
eg. TEXTPAD.EXE -ac "Read me.txt"(51,20)
In this example TextPad will start up and open "Read me.txt" at line 51, column 20 and display it in a cascaded window.
Hope this was helpful.............good luck,
Bob
Bob