|
|
Up |
|
|
  |
Author: octaedrooctaedro Date: Apr 23, 2008 12:04
Hi,
I am trying to organize my computation results. I get a lot of output
files for many different parameter values. The specific problem does
not matter. I was wondering if I could create automatically folders
from fortran so each set of results is stored in a different folder or
subfolder.... ie.
C:\Research\lifecycle\results001\output01.out
C:\Research\lifecycle\results001\output02.out
C:\Research\lifecycle\results001\output03.out ...
C:\Research\lifecycle\results002\output01.out
C:\Research\lifecycle\results002\output02.out
C:\Research\lifecycle\results002\output03.out ...
I know I can write a .bat program to do it but I would have to refresh
my knowledge and I am a bit short of time.
Thank you as always,
Jorge Alonso
|
| |
|
| | 7 Comments |
|
  |
Author: GaryScottGaryScott Date: Apr 23, 2008 12:26
On Apr 23, 2:04 pm, octaedro gmail.com> wrote:
> Hi,
>
> I am trying to organize my computation results. I get a lot of output
> files for many different parameter values. The specific problem does
> not matter. I was wondering if I could create automatically folders
> from fortran so each set of results is stored in a different folder or
> subfolder.... ie.
>
> C:\Research\lifecycle\results001\output01.out
> C:\Research\lifecycle\results001\output02.out
> C:\Research\lifecycle\results001\output03.out ...
>
> C:\Research\lifecycle\results002\output01.out
> C:\Research\lifecycle\results002\output02.out
> C:\Research\lifecycle\results002\output03.out ...
>
> I know I can write a .bat program to do it but I would have to refresh
> my knowledge and I am a bit short of time.
> ...
|
| Show full article (0.98Kb) |
|
| | no comments |
|
  |
Author: glen herrmannsfeldtglen herrmannsfeldt Date: Apr 23, 2008 13:03
octaedro wrote:
> I am trying to organize my computation results. I get a lot of output
> files for many different parameter values. The specific problem does
> not matter. I was wondering if I could create automatically folders
> from fortran so each set of results is stored in a different folder or
> subfolder.... ie.
(snip)
> I know I can write a .bat program to do it but I would have to refresh
> my knowledge and I am a bit short of time.
Write a Fortran program to output MKDIR commands to create the
needed directories as a .BAT file. Execute it. Then run your
program to create files in the existing directories.
One warning, though. Some Fortran compilers process the C escape
sequences which requires doubling of backslash in your program.
That is the easy way that doesn't require any refreshing.
-- glen
|
| |
| no comments |
|
  |
Author: e p chandlere p chandler Date: Apr 23, 2008 13:34
On Apr 23, 3:04 pm, octaedro gmail.com> wrote:
> Hi,
>
> I am trying to organize my computation results. I get a lot of output
> files for many different parameter values. The specific problem does
> not matter. I was wondering if I could create automatically folders
> from fortran so each set of results is stored in a different folder or
> subfolder.... ie.
>
> C:\Research\lifecycle\results001\output01.out
> C:\Research\lifecycle\results001\output02.out
> C:\Research\lifecycle\results001\output03.out ...
>
> C:\Research\lifecycle\results002\output01.out
> C:\Research\lifecycle\results002\output02.out
> C:\Research\lifecycle\results002\output03.out ...
>
> I know I can write a .bat program to do it but I would have to refresh
> my knowledge and I am a bit short of time.
> ...
|
| Show full article (1.61Kb) |
| no comments |
|
  |
Author: Gerry FordGerry Ford Date: Apr 23, 2008 15:31
"e p chandler" juno.com> wrote in message
news:b1a9908b-d5ce-42f1-ae8e-60c2ff4e37e0@e53g2000hsa.googlegroups.com...
On Apr 23, 3:04 pm, octaedro gmail.com> wrote:
> Hi,
>
> I am trying to organize my computation results. I get a lot of output
> files for many different parameter values. The specific problem does
> not matter. I was wondering if I could create automatically folders
> from fortran so each set of results is stored in a different folder or
> subfolder.... ie.
>
> C:\Research\lifecycle\results001\output01.out
> C:\Research\lifecycle\results001\output02.out
> C:\Research\lifecycle\results001\output03.out ...
>
> C:\Research\lifecycle\results002\output01.out
> C:\Research\lifecycle\results002\output02.out
> C:\Research\lifecycle\results002\output03.out ...
>
> I know I can write a .bat program to do it but I would have to refresh ...
|
| Show full article (2.13Kb) |
| no comments |
|
  |
Author: FXFX Date: Apr 23, 2008 15:43
Gerry wrote:
> --->This works like a charm. When I run it a second time, I get a
> notification that the folders or files already exist, but it writes to
> the files just fine.
Please, Gerry, can you use the well-established way of quoting posts
you're replying to? I find your posts sometimes hard to read and separate
the quotation from your answer.
You can find details Usenet guides, for example
here:http://www.netmeister.org/news/learn2quote.html, on how to quote
correctly, but the short version is to:
a. to quote, just add a '>' character left of every line quoted.
b. select what you quote; do not quote entire posts unless necessary;
especially trim the quotation higher than the first level
Thanks!
--
FX
|
| |
| no comments |
|
  |
Author: octaedrooctaedro Date: Apr 23, 2008 15:45
On Apr 23, 1:34 pm, e p chandler juno.com> wrote:
> On Apr 23, 3:04 pm, octaedro gmail.com> wrote:
>
>
>
>> Hi,
>
>> I am trying to organize my computation results. I get a lot of output
>> files for many different parameter values. The specific problem does
>> not matter. I was wondering if I could create automatically folders
>> from fortran so each set of results is stored in a different folder or
>> subfolder.... ie.
>
>> C:\Research\lifecycle\results001\output01.out
>> C:\Research\lifecycle\results001\output02.out
>> C:\Research\lifecycle\results001\output03.out ...
>
>> C:\Research\lifecycle\results002\output01.out
>> C:\Research\lifecycle\results002\output02.out
>> C:\Research\lifecycle\results002\output03.out ... ...
|
| Show full article (1.80Kb) |
| no comments |
|
  |
|
|
  |
Author: nospamnospam Date: Apr 28, 2008 19:25
FX alussinan.org> wrote:
> Please, Gerry, can you use the well-established way of quoting posts
> you're replying to? I find your posts sometimes hard to read and separate
> the quotation from your answer.
Yeah. I keep getting confused by that when reading Gerry's posts
(specifically including the one in this thread). My first reaction was
"Huh! Didn't I just read this? Maybe epc double-posted it." Only after
looking more closely do I see "Oh, it's Gerry replying."
The reason I'm posting this is not just to pick on Gerry, but to explain
part of the reason behind sticking to the convention. When you don't use
at least some recognizable quoting style, it confuses the reader, which
is not usually what one wants to do. I can testify first-hand that it
confuses me.
--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
|
| |
| no comments |
|
|