Ask Experts Questions for FREE Help!
 

Free Answers in 3 Easy Steps

Register Now
3 Steps
 


Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.
  Answer this Question    Ask about Windows    Ask about another Subject  
 

andyhaus1057
Oct 4, 2009, 09:27 AM
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
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
Nov 8, 2009, 11:21 AM
Create a new text file called anything.bat

Edit the file and insert the following...
---------------------------
@<hidden> 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