1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Windos XP Command line: listing the Read-Only Files in a Subdirectory

Discussion in 'Windows XP' started by omedodoza, 2003/02/21.

Thread Status:
Not open for further replies.
  1. 2003/02/21
    omedodoza

    omedodoza Inactive Thread Starter

    Joined:
    2003/02/21
    Messages:
    7
    Likes Received:
    0
    HI, I am having some problems with the Dos Command?

    I want to write a command to produce a directory listing of all the Read-Only Files in the COMPUTER Subdirectory. What Command should I used?

    Can somebody tell me what would Happned if the following Command is executed: Copy \ENERGY\NUCLEAR\FISSION\*.DOC
    Where will the files be copied? Which files will be copied?

    I try to doit but I recieve an error message.
     
  2. 2003/02/21
    Zephyr

    Zephyr Inactive

    Joined:
    2002/01/21
    Messages:
    1,519
    Likes Received:
    0
    Dir /a:r /s

    If you want to create a text file with the output:

    Dir /a:r /s > "C:\Documents and Settings\[your ID]\Desktop\mylist.txt "

    ...and a text file named mylist.txt will be placed on your Desktop with all the files listed that you requested.

    The command syntax is incorrect and would cause you to receive an error message. The COPY command requires that you input a source AND a destination. e.g., You could input:

    copy c:\energy\nuclear\fission\*.doc a:\

    ..and all the files in the source folder with a .doc extension would be copied to a floppy inserted in the A: drive.

    To be sure you get the desired results, always input the full path to the source AND destination. There are times when you do not need to do that but until you learn when those times are, use the full path.
     

  3. to hide this advert.

Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.