Copy files from RAM

Posted on 2006-05-01
Last Modified: 2008-03-04
I need a PERL script that will check to see if files have been read into RAM and if so, copy those files to the hard drive. Is this possible to do?

This will be running on a Windows computer and compiled to and EXE when complete.

Thank you

Question by:jray9242
    LVL 51

    Expert Comment

    > ..  files have been read into RAM
    do you mean read into RAM by perl itself?

    > ..  compiled to and EXE when complete.
    why would you use perl whe you want to compile it?

    Author Comment

    1. I will have no way of knowing how the files got put into RAM. I just beed to check for them and copy them if they are there.

    2. Compling PERL to an EXE allows the people to use it with having to have PERL on the computer.
    LVL 51

    Expert Comment

    1. I'm still confused, each process which uses a files should know if it is in memory, otherwise you have a memory leak.
      so what should your perl script check? which process, which file, which RAM?

    Author Comment

    Now those are good questions and I need to find out before I can continue. What happens is some people hide files in RAM and I need to locate them, but you have asked something I need to fine out.

    LVL 39

    Expert Comment

    Are they using a RAM drive?

    A RAM drive is when you take an area of memory, and consider it a drive.  It gets a drive letter, and you can use it like you would another drive.  Any files on it would be "lost" when the computer is shut-off though, so it's not a good place for stuff you want to keep.
    LVL 51

    Accepted Solution

    > .. some people hide files in RAM and I need to locate them ..
    you mean that they do something against some policies? Then either don't give them access to computers, or fire them. I guess that this is a social, not a technical problem. If they already know how to "hide files in RAM", they'll get around you "perl script to locate files" also.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    perl script help 5 224
    collecting information 2 112
    stftime format 4 47
    Transforming a Soap message to a simple xml message! 10 125
    Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
    I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    This video discusses moving either the default database or any database to a new volume.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now