Ask Experts Questions for FREE Help !
Ask
    andyhaus1057's Avatar
    andyhaus1057 Posts: 98, Reputation: 1
    Junior Member
     
    #1

    Oct 4, 2009, 09:27 AM
    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?
    joel0613's Avatar
    joel0613 Posts: 23, Reputation: 6
    New Member
     
    #2

    Oct 16, 2009, 08:52 AM

    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
    GrantHillsSA's Avatar
    GrantHillsSA Posts: 405, Reputation: 9
    Full Member
     
    #3

    Nov 8, 2009, 12:21 PM

    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

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Sharing Directories over VPN Connection [ 2 Answers ]

I have no problems connecting and athenicating from XP client to my W2K server via VPN, but cannot see any files even through the local network connection before the router. Try and find this one in technet, seems the only resource discusses the VPN setup connection only and nothing about...

Execute DOS Commands Secretely? [ 2 Answers ]

HELLO THERE! (I'm Using Windows-XP SP-2) I Start With Example: -I Have A Calc.exe -I Rename Calc.exe As Clock.txt -(To Hide Its Identity No Body Knows It's an exe) -Now We Have Clock.txt Kept On C:\ -I Want To Run A Sequence Of DOS Commands. They Are:

Commands [ 1 Answers ]

Hi pals I came across some commands like ping,telnet,ftp etc I got 2 know these commands are used to connect the systems remotely but do we have to be online to use these commands or they can be used offline also and can you tell me an example to connect two systems Thankq

FTP Commands [ 4 Answers ]

Does anyone know the proper syntax to make an FTP connectiion with the user name and password all in the same ftp command line. ftp www.domain.com 'username' 'password'??

Two default directories made on DOS [ 1 Answers ]

Whenver we make a dir in DOS , there are two directories created by default with the name . And .. What does this signify?? Is it related to.. in cd.. Please Help


View more questions Search