Results 1 to 5 of 5

Thread: Accessing Output Files

  1. #1
    Join Date
    Aug 2009
    Posts
    164
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Accessing Output Files

    I have a script setup to output text files after it completes a loop with information about what is going on. I shared the output folder on my network, and I can see every couple minutes that a new text file appears. My problem is when I try to access any of the files notepad says "The process cannot access the file because it is being used by another process." So far the script has made 30 text files and I can't even access the first one.

    Any ideas?

    Thanks!

  2. #2
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    I really don't know too much about that, but maybe try stopping the script before you attempt to access them?

  3. #3
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    You need to use the CloseFile command after you're done writing the file.

  4. #4
    Join Date
    Aug 2009
    Posts
    164
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by NCDS View Post
    I really don't know too much about that, but maybe try stopping the script before you attempt to access them?
    Well obviously, but that would defeat the whole purpose...

    Anyone know how to access them while scar is still running? I don't see why it would be using files after it is done writing them anyways...

    Is there anything I can add at the end of the loop to make scar stop using the files?

  5. #5
    Join Date
    Aug 2009
    Posts
    164
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by senrath View Post
    You need to use the CloseFile command after you're done writing the file.
    I'll give this a try, Thanks!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •