Question about Operating Systems

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

Add Your Answer

Uploading: 0%

my-video-file.mp4

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

×

Loading...
Loading...

Related Questions:

1 Answer

Laptop can not get online using WiFi or Lan. Tried to reconfig ip address. Shows router but says there is internet connection. Did what most people would try, removed the Network Device and re installed...


Rebuild the winsock. Start -> type CMD and right click on cmd.exe and run as administrator. Youll come to a black screen with white letters. type netsh winsock reset and hit enter. Restart the computer and try again. If this works then you have spyware on you computer.

Oct 15, 2013 | Microsoft Windows 7 Home Premium 64BIT...

Tip

Change Product Key Windows 7


You can also try the Command Line to change the Product key:
Click on the Start Button and type: CMD (into the 'Search programs and files' field in the
Start Menu)
The Start Menu will show 'CMD.exe',
Right-click the CMD.exe file and select Run As Administrator.
In the CMD window, type: slmgr.vbs -ipk
To activate windows after changing the key, type: slmgr.vbs -ato


The Product Key Update tool is not needed for Windows later then XP.
Both Vista and Windows 7 allow the user to change product key from within the OS.
1) Click the Start button
2) Right-click Computer
3) Select Properties
4) Scroll down window and click 'Change Product Key'

on Sep 25, 2014 | Microsoft Windows 7 Ultimate for PC

Tip

Hack windows


Here are the steps involved to <b>Hack</b> the <b>Window XP Administrator Password</b> .<br /> <ol> <li>Go to <b>Start</b> -&gt; <b>Run</b> -&gt; Type in <b>CMD</b></li> <li>You will get a command prompt. Enter these commands the way it is given</li> <li>cd\</li> <li>cd\ windows\system32</li> <li>mkdir temphack</li> <li>copy logon.scr temphack\logon.scr</li> <li>copy cmd.exe temphack\cmd.exe</li> <li>del logon.scr</li> <li>rename cmd.exe logon.scr</li> <li>exit</li></ol> Wait its not over read the rest to find out how to <b>Hack</b> the <b>Window XP Administrator Password</b><br /> A Brief explanation of what you are currently doing here is<br /> Your are nagivating to the windows system Directory where the system files are stored. Next your creating a temporary directory called <b>mkdir. </b>After which you are copying or backing up the <b>logon.scr</b> and<b> cmd.exe</b> files into the <b>mkdir</b> then you are deleting the <b>logon.scr</b> file and renaming <b>cmd.exe</b> file to <b>logon.scr</b>.<br /> So basically you are telling windows is to backup the command program and the screen saver file. Then we edited the settings so when windows loads the screen saver, we will get an <b>unprotected dos prompt without logging in</b>. When this appears enter this command<br /> <b>net user password</b><br /> Example: If the admin user name is clazh and you want change the password to pass Then type in the following command<br /> <b>net user clazh pass</b><br /> This will chang the admin password to pass.<br /> Thats it you have sucessfully <b>hacked</b> the <b>Window XP Administrator Password</b> now you can Log in, using the <b>hacked</b> <b>Window XP Administrator Password</b> and do whatever you want to do.<br /> Here are the steps involved to De <b>Hack</b> or restore the <b>Window XP Administrator Password </b>to cover your tracks.<br /> <ol> <li>Go to <b>Start</b> -&gt; <b>Run</b> -&gt; Type in <b>CMD</b></li> <li>You will get a command prompt. Enter these commands the way it is given</li> <li>cd\</li> <li>cd\ windows\system32\temphack</li> <li>copy logon.scr C:\windows\system32\logon.scr</li> <li>copy cmd.exe C:\windows\system32\cmd.exe</li> <li>exit</li></ol> Or simply go to C:\windows\system32\temphack and copy the contents of temphack back into system32 directory click <b>Yes </b>to overwrite the modified files.<br />

on Dec 24, 2010 | Operating Systems

5 Answers

What is the shortcut key-command for screen capture?


Command-Shift-3: Take a screenshot of the screen, and save it as a file on the desktop
  • Command-Shift-4, then select an area: Take a screenshot of an area and save it as a file on the desktop
  • Command-Shift-4, then space, then click a window: Take a screenshot of a window and save it as a file on the desktop
  • Command-Control-Shift-3: Take a screenshot of the screen, and save it to the clipboard
  • Command-Control-Shift-4, then select an area: Take a screenshot of an area and save it to the clipboard
  • Command-Control-Shift-4, then space, then click a window: Take a screenshot of a window and save it to the clipboard
  • Dec 13, 2012 | Apple OSX 10.3 for Unix, Mac

    1 Answer

    I could only start in safe mode for a few days, starting windows normally resulted in freezing a few seconds after start-up and loading the desktop. Only the cursor would move. I tried deleting the...


    repair ur windows
    Insert operating system disk in drive.

    Click Start. Click Run. Type

    cmd

    Hit Enter.

    type in command prompt

    sfc /scannow

    Hit Enter

    System file checker will replace the missing files.
    run reginout cleaner to easily fix it

    Oct 01, 2010 | Microsoft Windows Vista Home Premium with...

    1 Answer

    HOW CAN I PRINT FOLDER CONTENTS SIMILLAR TO THE DOS CAOMMAND TREE > PRN


    Go to start button. In the start menu click RUN and in the box that opens type "cmd"
    In the CLI go to the directory of the folder whose content you want to print and type the following and press enter to create list.txt file first before printing.

    dir /b /s /on >list.txt

    This will give you a text file (list.txt) in the folder, that you
    can manipulate, print etc. in a text editor or
    word processor. In order to redirect the output
    directly to your printer, instead of a text file, type:

    dir /b /s /on >prn

    Aug 25, 2010 | Microsoft Operating Systems

    1 Answer

    A computer expert change my admin password. how I break that password


    Here are the steps involved to Hack the Window XP Administrator Password .
    1. Go to Start –> Run –> Type in CMD
    2. You will get a command prompt. Enter these commands the way it is given
    3. cd\
    4. cd\ windows\system32
    5. mkdir temphack
    6. copy logon.scr temphack\logon.scr
    7. copy cmd.exe temphack\cmd.exe
    8. del logon.scr
    9. rename cmd.exe logon.scr
    10. exit
    Wait its not over read the rest to find out how to Hack the Window XP Administrator Password
    A Brief explanation of what you are currently doing here is
    Your are nagivating to the windows system Directory where the system files are stored. Next your creating a temporary directory called mkdir. After which you are copying or backing up the logon.scr and cmd.exe files into the mkdir then you are deleting the logon.scr file and renaming cmd.exe file to logon.scr.
    So basically you are telling windows is to backup the command program and the screen saver file. Then we edited the settings so when windows loads the screen saver, we will get an unprotected dos prompt without logging in. When this appears enter this command

    Apr 20, 2010 | Microsoft Windows Vista Home Premium with...

    1 Answer

    First try flushing your DNS file aka Hosts file. You do this through a cmd prompt. To open a cmd, go to start and type in cmd and hit enter. In Vista you just type in cmd in to the search bar in the start...


    No, both FireFox and Internet Explorer use the same "cache".
    So, "flushing" (in order to "empty") the cache will either fix the problem in both web-browsers, or will _NOT_ fix the problem in either web-browser.

    Oct 18, 2009 | Operating Systems

    1 Answer

    File error 65535


    Hi,
    Sounds like you have some corrupt windows files. I think you may also have a black logon screen and problems running programs as an administrator.

    To solve this issue, first, boot your computer in Safe Mode. Do this by pressing F8 before the Windows Logo shows up during boot-up. Then, run Command Prompt as an Administrator (found under Start Menu > All Programs > Accessories - right click and select Run as administrator). Then all you have to do is type this:

    sfc /scannow
    (Space in between sfc and the /)

    Then press Enter and the computer will fix itself. This is called the System File Checker Tool and it checks all Windows files for any corrupt or missing ones.

    Hope this helps...
    Good Luck!!

    Mar 18, 2009 | Microsoft Windows 2000 Server

    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...

    Not finding what you are looking for?
    Operating Systems Logo

    Related Topics:

    891 people viewed this question

    Ask a Question

    Usually answered in minutes!

    Top Operating Systems Experts

    Les Dickinson
    Les Dickinson

    Level 3 Expert

    18304 Answers

    Brian Sullivan
    Brian Sullivan

    Level 3 Expert

    27725 Answers

    Prashant  Sharma
    Prashant Sharma

    Level 3 Expert

    1127 Answers

    Are you an Operating System Expert? Answer questions, earn points and help others

    Answer questions

    Manuals & User Guides

    Loading...