How to make new folder through scripting??
Posted 04-27-2013 at 04:28 PM by anky.parmar1786
Hi All,
I have one question.. I have two directories.. one is /logs and other is /logs_backup.
There are 5 folders in /logs directory with the name Jan,Feb,Mar,Apr and May .. now what I want to do is
that I want to move these folders log(Jan,Feb,Mar,Apr and May) in /logs_backup directory.
I want a script in which when script will run,it will check in /logs_backup directory that whether is Jan folder is there or not? If it is there then ok and if it is not there then create a folder with name of Jan.
Same way If I'll add any new folder in /logs directory with the coming months name like Jun,Jul etc so when the scripts run next time it will check first that whether Jun folder is available in /logs_backup or not? If it is available then no need to create but when if it is not there then create folder with the same name..If anybody help me on this then I shall be very thankful to him/her.. Thanks in advance.. Ankit
I have one question.. I have two directories.. one is /logs and other is /logs_backup.
There are 5 folders in /logs directory with the name Jan,Feb,Mar,Apr and May .. now what I want to do is
that I want to move these folders log(Jan,Feb,Mar,Apr and May) in /logs_backup directory.
I want a script in which when script will run,it will check in /logs_backup directory that whether is Jan folder is there or not? If it is there then ok and if it is not there then create a folder with name of Jan.
Same way If I'll add any new folder in /logs directory with the coming months name like Jun,Jul etc so when the scripts run next time it will check first that whether Jun folder is available in /logs_backup or not? If it is available then no need to create but when if it is not there then create folder with the same name..If anybody help me on this then I shall be very thankful to him/her.. Thanks in advance.. Ankit
Total Comments 1
Comments
-
While, within limits, you are free to post anything you want here this is not what your web log was meant for.
Technical questions should be posted in the forum instead.Posted 04-27-2013 at 05:43 PM by unSpawn