Batch file to create a folder with current date


















Jus one more. I don't want to create new folder 1 alone Should go like this, new folder, new folder 2 , new folder 3 , new folder What should i do??

That does it. You did fine coding. Thanks stephan. What should I include to check the condition? Magoo Magoo Baoby J. Baoby 1, 2 2 gold badges 10 10 silver badges 17 17 bronze badges. That's a typo. Your code should work by logic, but still it is not working. I corrected my answer following the correction of your typo. Yes it did work on my side — J. Thank you so much. Jus one more, I tried to create new folder 3 with same method Checking for " if new folder and new folder 2 already exists create new folder 3.

But that jus doesn't work. How would you do it? You might be interested in this answer -- this is not for creating folders but files, using suffixes -1 , -2 , etc. It will depend on your regional settings - mine says "" — Blorgbeard.

Blorgbeard even the folder name is created as T I am using standard US English culture. Is there anything I am missing? Blorgbeard yes just T and nothing else. CSV -pRetailPassword cd.. Bize32 Bize32 53 6 6 bronze badges. Leigh Leigh 21 2 2 bronze badges. Marco Marco 7 7 silver badges 14 14 bronze badges. Java Devil Natan Braslavski Natan Braslavski 5 5 silver badges 18 18 bronze badges.

You'll like this, change it so that it can suit your requirements. Ajay Kulkarni 2, 9 9 gold badges 42 42 silver badges 83 83 bronze badges. James Carroll James Carroll 11 1 1 bronze badge. I use the next code to make a file copy e. Proxyma Proxyma 13 5 5 bronze badges. Community Bot 1 1 1 silver badge. Hayz Hayz 1. Kayvan Mazaheri 2, 24 24 silver badges 39 39 bronze badges. Pankaj Vishwakarma Pankaj Vishwakarma 1. Why sqlplus? Hassan Salama Hassan Salama 1 1 1 bronze badge.

This answer seems to be a duplicate, compare comment or Simon G. The Overflow Blog. Podcast Helping communities build their own LTE networks. Podcast Making Agile work for data science.

Find centralized, trusted content and collaborate around the technologies you use most. Connect and share knowledge within a single location that is structured and easy to search. Basically trying to create an auto-update all mods feature by running the batch file.

So far I have this and it creates the directory but does not move the files. I know nothing about batch programming by the way, this is my first time writing a batch script. If I knew the drive number on the remote server it would maybe work.

I have it with a test file right now, but I will add all my mods to it once I know how to move the file. But just using one line for now and one folder for testing. Stack Overflow for Teams — Collaborate and share knowledge with a private group. It's Working Now, Many Thanks! Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.

Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Helping communities build their own LTE networks.

Podcast Making Agile work for data science.



0コメント

  • 1000 / 1000