User Profile

Collapse

Profile Sidebar

Collapse
chrisbirk
chrisbirk
Last Activity: Aug 1 '08, 06:54 AM
Joined: Jul 22 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Hi,
    here's the code with the problem copying the results for every iteration into a newly created "sim" folder.
    Cheers,
    CB

    Code:
    import java.io.*; 
    public class PCRmain {
    	public static void main(String[] args) throws InterruptedException
    	{
    		/* specify number of model iterations */
    		
    		String nb = "0";
    		System.out.println("type number of iterations
    ...
    See more | Go to post

    Leave a comment:


  • Hi!
    thanks again for your help. I can now rename folders and its content from another directory into a new one, but renaming the working folder ("PCRaster" - where the model writes the results in) to the newly created sim_n folder for every iteration step is still not working. As I don't get any error messages when compiling and setting the code up and as I'm new to Java still not knowing about limitations or exceptions I'd like...
    See more | Go to post

    Leave a comment:


  • Thanks for the quick reply!
    I tried the following in my iteration loop, which I suppose is not correctly implemented. Could you kindly give me another hint?

    /* Copies results for every single run into "sim" folders */
    { if (!sim.exists())
    {/* create j result folders called "sim" */
    String folder_name = "sim_" + j;
    String directory = "D:/eclipse/Hydro/" + folder_name;
    ...
    See more | Go to post

    Leave a comment:


  • "copyDirectory" multiple files-folder into new one fails

    Hi!
    I want to write an application on windows xp, which iterates n times a model script (exe) and copies every single run the results (multiple files such as text, maps, subfolders,etc) from the existing folder into a new one. The code works, but no files nor folders are copied. This is how far as I got being an absolute beginner in Java. Thanks for any help,
    CB

    [I]import java.io.*;

    public class PCRmain...
    See more | Go to post
No activity results to display
Show More
Working...