Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • Yes, i tried this and works fine. But if the folder exists than the second command aborts or fails to execute. Commented Mar 10, 2022 at 9:19
  • As you explained above, the folders are created once so the first set of cmd is success but again second time the folder exist , but than the second command fails. Does this work with batch format Commented Mar 10, 2022 at 9:32
  • @Travelz_ please read the If you don't care about successful creation of the folder ... sentence again.
    – Stephan
    Commented Mar 10, 2022 at 11:10
  • @Stephan , I note your point. I have used the single ( &,) but still it failed in running second command. Commented Mar 10, 2022 at 11:53
  • Then the problem is probably with the second command (btw: it's a batch file - there is no need to squeeze several commands into one line. Just use one command per line.). How does it fail? Any messages on screen?
    – Stephan
    Commented Mar 10, 2022 at 11:59