benjybee1 Posted February 15, 2008 Share Posted February 15, 2008 Hi, I havent used autoit for a while and I have forgot a lot. I have a simple question I want to run in dos the following D: cd p md newfolder How can I do it with comspec I know this is a very simple question. Use autoit, if not, you forget a lot Link to comment Share on other sites More sharing options...
rmarino Posted February 15, 2008 Share Posted February 15, 2008 Hi, I havent used autoit for a while and I have forgot a lot. I have a simple question I want to run in dos the following D:cd pmd newfolder How can I do it with comspec I know this is a very simple question. Use autoit, if not, you forget a lot Do you need to do it that way? If not you can use DirCreate ("d:\p\newfolder") Link to comment Share on other sites More sharing options...
benjybee1 Posted February 16, 2008 Author Share Posted February 16, 2008 Yes, I know about that method, but I want to be this done from the command prompt Thank you Link to comment Share on other sites More sharing options...
rmarino Posted February 16, 2008 Share Posted February 16, 2008 Then simply use the run or runwait methods: RunWait(@ComSpec & " /c md d:\p\newfolder") Link to comment Share on other sites More sharing options...
benjybee1 Posted February 16, 2008 Author Share Posted February 16, 2008 It works Thank you for your fast answer and help Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now