Question about Computers & Internet

1 Answer

Cmd screen print help

I know how to get output to show in cmd and I also know how to get the output to print to a file. The problem comes in when I try to print to a file. Of course, there is no output on the screen. Is there a way to do both? I know I can write to a file and then use the TYPE command to print the file but I would like it to write to a file as well as to the screen in real time. That way I can see if a large batch file locks up and where without having to search a file. Does this option even exist?

Posted by on

  • 1 more comment 
  • Timothy Jaramillo
    Timothy Jaramillo Mar 28, 2008

    I am wanting to create a constant log which it basically does whenever you run a batch file without >> filename.txt. With >> filename.txt it writes the output to a file named "filename.txt" in whichever directory you are in but doesn't show on screen. I am wanting to write it to the file "filename.txt" but I want it to display in real time on the screen as well. Not that big of a deal but it would be nice in case the script locks up the computer I can see where.



    By the way, this is for Windows XP Pro.

  • Timothy Jaramillo
    Timothy Jaramillo Apr 01, 2008

    This worked. Thank you so much. You have no idea how long I have been looking for a solution on this.

  • Ronald Homer
    Ronald Homer May 11, 2010

    so, basically you want to create a contstant log of everything you type in the command line, and all the information that is returned?

    What operating system are you using? what other details can you give me?

×

1 Answer

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    Hot-Shot:

    An expert who has answered 20 questions.

    Corporal:

    An expert that hasĀ over 10 points.

    Mayor:

    An expert whose answer gotĀ voted for 2 times.

  • Expert
  • 59 Answers

Hmm... you could try the "&" option...

Dir & Dir >>dir.txt

you might also try the clip.exe program, described here:

http://blogs.techrepublic.com.com/window-on-windows/?p=521

although i haven't tested the clip exe, so it might just leave you with the same problem...
 

Posted on Mar 28, 2008

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

Cannot print PDF, pop up asks to print to file and enter an Output File Name


If you have a virtual printer (PDF printer like BullZip, PDFPrint, or something else) maybe it is your default printer and when you chose the option "print" you need to choose the the right printer (in your situation HP Officejet Pro L7780 )
Good luck.

Jul 13, 2012 | HP Officejet Pro L7780 All-In-One InkJet...

1 Answer

What Is CMD Prompt For


The CMD, or Command, is used to run
DOS commands. Click Start, Run, type CMD and press Enter. At the cursor on the "DOS Screen", type ATTRIB *.*.
That will show you the attributes of the files. (Read, Archive, System and Hidden) Now type HELP. That will show you the commands you can run. CMD is very useful for deep troubleshooting.
Today, not so much because when something quits working, we just buy a new one.

Jun 06, 2012 | Computers & Internet

1 Answer

How to safe or copy a dos command output to a file or to print it? My first question. I have a home network composed of laptops running Vista operating system. The network connects to the internet by...


why dont you just type it on the notepad.. ex : open a notepad editior, then write IP config /all - if you want to view your whole network status.. while IP Config /release - is to released the desired network, then ipconfig /renew - set or refresh your network..
If you only want to have a documentation for your ip, then much better to write it down on the notepad editor.
hope it can help...
Thanks

Aug 26, 2011 | Computers & Internet

1 Answer

Printer was running fine, then stopped, Screen reads Ready. then below that a checkmark with Status/Supplies (Don't know what this means) I pressed the check mark on my printer then it went to a screen...


Did you clear the printing queues in the printer icon. If not, you need to delete, turn of the printer and turn it on again.

If still problem occurs, there is problem on buffer. To clear this

Go to start menu
Choose Run and you will go to DOS system
Type C: and press enter if you are not in C: drive
Type the letter "cmd" and press enter
Type the word " net stop spooler" and press enter and exit
Now go to C:Drive
Choose Windows folder and show content if all files are not viewable
Choose system32 folder
Choose spool folder
Choose printer folder
And delete all the printing jobs pending
then go back again to cmd
type the word "net start spooler" press enter and exit.
Restart your computer and restart also your computer. And try to print again.

Good luck

Jan 05, 2011 | Lexmark T642 Laser Printer

1 Answer

Cannot print a pdf


Are you using Adobe Writer, try un installing and reinstalling

or download a app like freepdf

let me know, cause the solution depends on what software you are using.

Aug 21, 2009 | HP Photosmart D7460 Printer

1 Answer

I'm trying to delete a print instruction. Printer shows "deleting" but the delete isn't happening


Click Start - Run
Type CMD - hit Enter
Type NET STOP SPOOLER
Goto C:\Windows (or WinNT) \System32\Spool\Printers
The files in there are your stuck print jobs - delete all of them
Back in your CMD window type NET START SPOOLER

Done.

Oct 04, 2008 | HP Office Equipment & Supplies

1 Answer

Trouble prining with my MFC 5480cn. Using


Hello you can delete the print job manually.
you need to have administrative right on the computer to do this.

go to run> input "cmd"
write
net stop spooler
go to
%SystemRoot%\system32\spool\printers or(System32\SpoolPrinters )
delete all files that ends with->
.SPL
and
.SHD
then
write in cmd "net start spooler"
check your printer job now and it should be gone.

good luck

Sep 16, 2008 | Brother MFC-5840CN All-In-One InkJet...

1 Answer

How to use cmd ?


to use the command prompt, press the "start" and "R" keys on the keyboard.
On the small, "Run" screen, type cmd.
click ok.

type help in the command prompt. This should print a list of commands that you can use with it.
This is what it puts on-screen:
For more information on a specific command, type HELP command-name
ASSOC Displays or modifies file extension associations.
AT Schedules commands and programs to run on a computer.
ATTRIB Displays or changes file attributes.
BREAK Sets or clears extended CTRL+C checking.
CACLS Displays or modifies access control lists (ACLs) of files.
CALL Calls one batch program from another.
CD Displays the name of or changes the current directory.
CHCP Displays or sets the active code page number.
CHDIR Displays the name of or changes the current directory.
CHKDSK Checks a disk and displays a status report.
CHKNTFS Displays or modifies the checking of disk at boot time.
CLS Clears the screen.
CMD Starts a new instance of the Windows command interpreter.
COLOR Sets the default console foreground and background colors.
COMP Compares the contents of two files or sets of files.
COMPACT Displays or alters the compression of files on NTFS partitions.
CONVERT Converts FAT volumes to NTFS. You cannot convert the
current drive.
COPY Copies one or more files to another location.
DATE Displays or sets the date.
DEL Deletes one or more files.
DIR Displays a list of files and subdirectories in a directory.
DISKCOMP Compares the contents of two floppy disks.
DISKCOPY Copies the contents of one floppy disk to another.
DOSKEY Edits command lines, recalls Windows commands, and creates macros.
ECHO Displays messages, or turns command echoing on or off.
ENDLOCAL Ends localization of environment changes in a batch file.
ERASE Deletes one or more files.
EXIT Quits the CMD.EXE program (command interpreter).
FC Compares two files or sets of files, and displays the differences
between them.
FIND Searches for a text string in a file or files.
FINDSTR Searches for strings in files.
FOR Runs a specified command for each file in a set of files.
FORMAT Formats a disk for use with Windows.
FTYPE Displays or modifies file types used in file extension associations.
GOTO Directs the Windows command interpreter to a labeled line in a
batch program.
GRAFTABL Enables Windows to display an extended character set in graphics
mode.
HELP Provides Help information for Windows commands.
IF Performs conditional processing in batch programs.
LABEL Creates, changes, or deletes the volume label of a disk.
MD Creates a directory.
MKDIR Creates a directory.
MODE Configures a system device.
MORE Displays output one screen at a time.
MOVE Moves one or more files from one directory to another directory.
PATH Displays or sets a search path for executable files.
PAUSE Suspends processing of a batch file and displays a message.
POPD Restores the previous value of the current directory saved by PUSHD.
PRINT Prints a text file.
PROMPT Changes the Windows command prompt.
PUSHD Saves the current directory then changes it.
RD Removes a directory.
RECOVER Recovers readable information from a bad or defective disk.
REM Records comments (remarks) in batch files or CONFIG.SYS.
REN Renames a file or files.
RENAME Renames a file or files.
REPLACE Replaces files.
RMDIR Removes a directory.
SET Displays, sets, or removes Windows environment variables.
SETLOCAL Begins localization of environment changes in a batch file.
SHIFT Shifts the position of replaceable parameters in batch files.
SORT Sorts input.
START Starts a separate window to run a specified program or command.
SUBST Associates a path with a drive letter.
TIME Displays or sets the system time.
TITLE Sets the window title for a CMD.EXE session.
TREE Graphically displays the directory structure of a drive or path.
TYPE Displays the contents of a text file.
VER Displays the Windows version.
VERIFY Tells Windows whether to verify that your files are written
correctly to a disk.
VOL Displays a disk volume label and serial number.
XCOPY Copies files and directory trees.

this window is used only when the desktop cannot be accessed.
For a user-friendly interface (easier to use), use My computer to do common tasks.

Aug 25, 2008 | Microsoft Windows Vista Home Premium with...

4 Answers

Printer


try printing a test page. Make sure you have the right driver for your printer. Make sure all connection are secure and tight.

Mar 27, 2008 | Compaq Inkjet IJ650 Printer

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

891 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18384 Answers

kakima

Level 3 Expert

102366 Answers

David Payne
David Payne

Level 3 Expert

14161 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...