JustSomeGuy <JustSomeGuy@discussions.microsoft.com> wrote:
Looking for a way to have a folder whose name goes like this:

"Today is July 19, 2007"

and the date dynamically updates daily so it's always the correct day.

could this be simply done in a script that runs daily at some given time and
renames the folder?

> Is there a way to embed today's date in a folder name so that every
> day, the folder name always shows the correct date for that day?

>>I imagine you could write a script to regularly rename that folder, but that
>>isn't my area of expertise. Try posting in
>>microsoft.public.windows.scripting for more expert help.

Re: update today's date in a folder name, daily, via a script? by mr_unreliable

mr_unreliable
Thu Jul 19 16:05:13 CDT 2007

hi JustSomeGuy,

Piece of cake.

To run the script that creates your special file, you
can use the "task scheduler". Search this ng for examples.

To create the file with any name of your choosing, read
the scripting documentation for "fso" (file scripting object),
more specifically: the fso "CreateTextFile" method.

Also, you don't need the task scheduler, if your client
systems logon every morning, i.e., your users keep regular
hours. In that case just put your script in the
startup folder.

cheers, jw
____________________________________________________________

You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)

--- <ng archive search boilerplate> ---
For examples showing how to use the Task Scheduler,
use the google groups advanced group search:
http://groups.google.com/advanced_group_search
--- </ng archive search boilerplage> ---

JustSomeGuy wrote:
> JustSomeGuy <JustSomeGuy@discussions.microsoft.com> wrote:
> Looking for a way to have a folder whose name goes like this:
>
> "Today is July 19, 2007"
>
> and the date dynamically updates daily so it's always the correct day.
>
> could this be simply done in a script that runs daily at some given time and
> renames the folder?
>
>> Is there a way to embed today's date in a folder name so that every
>> day, the folder name always shows the correct date for that day?
>
>>> I imagine you could write a script to regularly rename that folder, but that
>>> isn't my area of expertise. Try posting in
>>> microsoft.public.windows.scripting for more expert help.
>
>
>
>

Re: update today's date in a folder name, daily, via a script? by S

S
Fri Jul 20 12:49:26 CDT 2007

uhm... text file? he wants to NAME a folder after the date.

use the FSO and the MoveFolder method... then use Date() to name the folder.




"mr_unreliable" <kindlyReplyToNewsgroup@notmail.com> wrote in message
news:OQTxWgkyHHA.3848@TK2MSFTNGP03.phx.gbl...
> hi JustSomeGuy,
>
> Piece of cake.
>
> To run the script that creates your special file, you
> can use the "task scheduler". Search this ng for examples.
>
> To create the file with any name of your choosing, read
> the scripting documentation for "fso" (file scripting object),
> more specifically: the fso "CreateTextFile" method.
>
> Also, you don't need the task scheduler, if your client
> systems logon every morning, i.e., your users keep regular
> hours. In that case just put your script in the
> startup folder.
>
> cheers, jw
> ____________________________________________________________
>
> You got questions? WE GOT ANSWERS!!! ..(but,
> no guarantee the answers will be applicable to the questions)
>
> --- <ng archive search boilerplate> ---
> For examples showing how to use the Task Scheduler,
> use the google groups advanced group search:
> http://groups.google.com/advanced_group_search
> --- </ng archive search boilerplage> ---
>
> JustSomeGuy wrote:
>> JustSomeGuy <JustSomeGuy@discussions.microsoft.com> wrote:
>> Looking for a way to have a folder whose name goes like this:
>>
>> "Today is July 19, 2007"
>>
>> and the date dynamically updates daily so it's always the correct day.
>>
>> could this be simply done in a script that runs daily at some given time
>> and renames the folder?
>>
>>> Is there a way to embed today's date in a folder name so that every
>>> day, the folder name always shows the correct date for that day?
>>
>>>> I imagine you could write a script to regularly rename that folder, but
>>>> that isn't my area of expertise. Try posting in
>>>> microsoft.public.windows.scripting for more expert help.
>>
>>
>>

Re: update today's date in a folder name, daily, via a script? by mr_unreliable

mr_unreliable
Fri Jul 20 15:59:47 CDT 2007

S Moran wrote:
> uhm... text file? he wants to NAME a folder after the date.
>
um, yes. I should learn to read the question
before attempting to answer.

cheers, jw