Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DOS Command Line Parameters For Wordpad-Notepad-Write.

Status
Not open for further replies.

jkerman

Programmer
Oct 11, 2002
25
AU
HELP!!
DOS Parameter Experts!!
Anyone know of the (DOS) Command-line parameters for Write or WordPad or Notepad?
HELP!!!.
 
Dear [wolluf],
I'm a elf-taught "clipper" database programmer, and need to be able to Print text-files, UpTo 80 characters wide.
I need to use the maximum 80 characters width.
I am aware that "wordpad/p [textfile]" &/or "notepad/p [textfile] will print text files, but I need to be able to change the default margins, to ensure I get maximum printable-area.
The default settings won't print 80 characters width, nor 66 lines per page.
That's why I'm trying to find out if any available parameters can be used to change margins, etc.
I hope you can help.
 
jkerman,

sorry - I know only as much as you!

One suggestion - wordpad does keep page setup settings if you change them (notepad doesn't). Could you just change your wordpad so it has zero margins/top/bottom?

What about copy and print dos commands?
 
Thanks [wolluf] for your effort.
Anyone else have any idea regards DOS parameters?
PLEASE!
 
Wordpad, notepad, and write are strictly Windows applets, won't run in DOS. C:\Windows\Command does have edit.com, a text editor for DOS.
 
Dear [Berton],
I'm sorry to say your wrong.
They can be run in DOS.
eg in DOS command line
"wordpad/p [textfilename]" will print file.
Same goes for notepad.
Thanks anyway.
John K.
 
Have you considered using another app? pfeditor is an excellent text editor which can print in dos mode. You can set default values in the windows app - but I'm not sure it will have what you require (you never replied to suggestion abot setting default values in wordpad before printing).
 
jkerman, I must have a problem with my 3 Win98SE computers, I restarted in MS-DOS Mode Only on all and tried the commands for Notepad and Write and all I got for my efforts was a message "This program cannot be run in DOS mode". Wordpad gave me an invalid command message.
 
Dear [Berton],
Perhaps it's SE version.
I'm currently using Win 98, simply drop out to DOS, using shortcut (shouldn't be a need to re-start in DOS),
then type wordpad/p [textfile.ext] (ie replace with your textfile name) and it prints.
However, if notepad or wordpad are not in your default directory or not available in the path statement of config.sys, then you'll get an error saying "can't find program, or something like that.
John K.
 
Okay, I see the mis-communication here. I thought you meant DOS and replied as such but your statement "I'm currently using Win 98, simply drop out to DOS, using shortcut (shouldn't be a need to re-start in DOS)" indicates you are using a DOS window, Windows is still running.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top