New Folder each day

  • Thread starter Thread starter AMP
  • Start date Start date
A

AMP

Hello,
I have an experiment that produces a lot of data each day.
I was wondering if anyone has seen(I'm not asking anyone to write
anything for me) code that will create a new folder every day and put
the data into it.
Thanks
Mike
 
I have an experiment that produces a lot of data each day.
I was wondering if anyone has seen(I'm not asking anyone to write
anything for me) code that will create a new folder every day and put
the data into it.

Just format DateTime.Today as a string in some suitable format and
create that as a folder. Have you already tried that and run into
problems?

Jon
 
We did something like this with weather data. Basically, for an observation
you look at the date and generate a folder name based on the date. If
generating folder names by year\month\day makes sense, then you could go with
that. The key is to test the existence of the folder when it is needed, and
create as necessary.
 
Hello,
I have an experiment that produces a lot of data each day.
I was wondering if anyone has seen(I'm not asking anyone to write
anything for me) code that will create a new folder every day and put
the data into it.
Thanks
Mike

what is your doubt?
you can generate a name by using DateTime.Today.ToString( "MMddyyyy")
and use it as a folder name.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top