faqts : Computers : Operating Systems : Microsoft : bilal

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

3 of 3 people (100%) answered Yes
Recently 3 of 3 people (100%) answered Yes

Entry

Microsoft Windows: XP: Copy con: How to use copy con to quickly create a file via a clipboard paste?

Jun 18th, 2005 09:22
Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 18 Juny 2005 - 11:39 pm -----------------------

Microsoft Windows: XP: Copy con: How to use copy con to quickly create 
a file via a clipboard paste?

---

Steps: Overview:

 1. -Copy the text you want to place in a file to the Windows clipboard

     1. Highlight the text

     2. Press <CTRL><C>

      e.g.

--- cut here: begin --------------------------------------------------

var fso;
var drv;
var args;
args = WScript.arguments;
if ( args.length != 1 ) {
 WScript.echo( "USAGE: drivread.js [driveletter]" );
 WScript.echo( "for example: drivread.js a:" );
}
fso = WScript.CreateObject( "Scripting.FileSystemObject" );
drv = fso.Drives( args( 0 ) );
if ( drv.isReady ) {
 WScript.echo( "Drive" + " " + args( 0 ) + " " + "is ready" );
}
else {
 WScript.echo( "Drive" + " " + args( 0 ) + " " + "is not ready" );
}

--- cut here: end ----------------------------------------------------

 2. -Open an MSDOS box

     1. -Click button 'Start'

     2. -Select from list 'Run'

     3. -Type the command

          cmd

         1. -Click button 'OK'

 3. -Type the command to create the file

      copy con <your filename>

       e.g.

      copy con myTest.txt

 4. -Paste the clipboard

     1. Click the black icon in the top left corner of the MSDOS box
        window

     2. -Select from list 'Edit'

     3. -Select from list 'Paste'

 5. -That will store the content of the clipboard in that file

 6. -If you do now a

      dir

     or

      type <your filename>

     you will see that the file has been created
     (thus all this without having to start e.g. an text editor, like
      Notepad).

---
---

Internet: see also:

---

Operating system: Microsoft: Windows: XP: Link: Overview: Can you give 
an overview of links?
http://www.faqts.com/knowledge_base/view.phtml/aid/34878/fid/868

----------------------------------------------------------------------