Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Windows (https://www.askmehelpdesk.com/forumdisplay.php?f=237)
-   -   Commands in directories (https://www.askmehelpdesk.com/showthread.php?t=402507)

  • Oct 4, 2009, 09:27 AM
    andyhaus1057
    Commands in directories
    Hi,

    I have a couple of questions...


    1) How would I write the command that would create the directory "spam" in the parent of the current directory?

    2) How would I write the command to display a long listing of the contents of the etc/sysconfig directory that will work form anywhere on the system?
  • Oct 16, 2009, 08:52 AM
    joel0613

    Hello,

    Okay, I'm not toally clear on what you are getting at but here are the commands to do I think what you are saying;

    1) md.. \spam

    2) dir c:\windows\system32\drivers\etc\sysconfig

    Somehow, I don't think that's what you are looking for but that seems to be what you are asking.

    Good luck
  • Nov 8, 2009, 12:21 PM
    GrantHillsSA

    Create a new text file called anything.bat

    Edit the file and insert the following...
    ---------------------------
    @ECHO Off
    CD..
    MD Spam
    ----------------------------

    2) dir c:\windows\system32\drivers\etc\sysconfig
    Or dir c:\windows\system32\drivers\etc\sysconfig > c:\list.txt
    The second one outputs the file names to c:\list.txt

    Cheers

  • All times are GMT -7. The time now is 12:34 AM.