Go Back   Computer Forums > General Computing > Server Administration
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 01-03-2013, 10:21 PM   #1
Baseband Member
 
Mirageboss's Avatar
 
Join Date: Dec 2012
Location: Australia
Posts: 91
Default Network Share Folder Creation

Does anyone know of any script that I could run to setup file structure to create a folder per business day. So for example:

2013
+ January
..+ 4
..+ 7
..+ 8
..+ 9
..+ 10

etc.

Else manual creations here I come.
__________________

Mirageboss is offline   Reply With Quote
Old 01-04-2013, 12:55 PM   #2
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,006
Default Re: Network Share Folder Creation

that creates a new folder on the day, or that creates all folders for the year right now?
__________________

__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 01-04-2013, 05:29 PM   #3
Baseband Member
 
Mirageboss's Avatar
 
Join Date: Dec 2012
Location: Australia
Posts: 91
Default Re: Network Share Folder Creation

Basically the business is open Monday - Friday. The customer wants us to make a folder for each day the business is open (so excluding public holidays).

So sort of what you said,but slightly different just monday-friday dates that we are open.
Mirageboss is offline   Reply With Quote
Old 01-11-2013, 06:55 AM   #4
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,006
Default Re: Network Share Folder Creation

what I meant is.

do you want a script that you can run today that will create a folder for today.
then when you run it on Monday it'll create a folder for Monday.
then when you run it Tuesday it'll create a folder for Tuesday.

(which means that if there is a day when the shop is closed there won't be an empty folder since it won't ever have been created).

Or do you want a script that runs right now, and attempts to predict working days etc, when public holidays are etc? that'll create you whole year of folders right now?
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 01-11-2013, 08:15 AM   #5
Fully Optimized
 
jmacavali's Avatar
 
Join Date: Jun 2009
Posts: 4,867
Default Re: Network Share Folder Creation

I don't know how to do this, but I'm going to say this. Wouldn't a script that follows the first method be kind of just like right-clicking>new>folder>name it the day of the week and wouldn't it be easier just to do that.

The second way would be better, if you want them all done now, but you might end up with extra folders - depending on how good the programmer is....


EDIT:
I guess in the first method, you could set it up to run on login, so that when the user logs in in the morning, the folder will be created and is there. That might actually be the best way to do it. As long as they don't login more than once during the day.
__________________
****************************************
Don't take life too seriously -- no one gets out alive. Plus, who wants to arrive to the hereafter in pristine condition wearing a suit and tie?
I want to slide in sideways, worn out, used up, hair a mess, clothes tattered, & screaming, "Whooo! What a ride!"
****************************************
jmacavali is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 04:57 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0