How do I Automate a task

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello, can anyone give a suggestion?

I need to automate the creation of a file folder that occurs the start of
each day.

Also the name of the folder needs to be the date of each day e.g. "012405"

Can this be done through XP's utilities or am I going to have to write a
script?

Thanks,

Ryan
 
Microsoft Script Center
http://www.microsoft.com/technet/scriptcenter/default.mspx

--
Carey Frisch
Microsoft MVP
Windows XP - Shell/User

Be Smart! Protect Your PC!
http://www.microsoft.com/athome/security/protect/default.aspx

----------------------------------------------------------------------------

:

| Hello, can anyone give a suggestion?
|
| I need to automate the creation of a file folder that occurs the start of
| each day.
|
| Also the name of the folder needs to be the date of each day e.g. "012405"
|
| Can this be done through XP's utilities or am I going to have to write a
| script?
|
| Thanks,
|
| Ryan
 
Thanks Ramesh, and thank you Carey, for getting me on the right track!

Ramesh, I am the same (Rhinohorn) as you posted the link to...

I used the following code and it works great...
--------------------
Dim FSO, FLD
Set FSO = CreateObject("scripting.filesystemobject")
NewDate = replace(date,"/","")
Set FLD=FSO.CreateFolder("C:\Documents and Settings\" & NewDate)
--------------------

Now how do I get the Date to return just the last 2 digits of the
year...e.g. 01252005 to just 012505?

Thanks again for your help!!

Ryan (Rhino)
 
Back
Top