Can i prevend the generation of files in temp directory

I noticed, that a labview (7.0) application generates different files in the temp directory when executed and deleting them when stoped.
(Except of the *cur.txt and *log.txt files which only exists once per application)
Is there a way to prevend LabView to write this files (lvtl*.rsc; lvtr*.rsc; *.tmp)
I've got an application, which i have to kill (there's no other way at this moment).
If i do so, the files still exist. I kill this application about once a minute.
Because i don't end the application the regular way, the mentioned files still exist.
As a result the temp directory runs full.
Suggestions are appreciated.
Best regards,
Rainer
P.S.: The Suggestion to regular stop the application does not help me of course ;-)

Rainer,
Nice question!
There are different ways for doing this. Unfortunately no any "100% guaranteed" way (because its not documented by NI - which temporary files are created by LV app):
So, first suggestion with deletion of all temporary files seems to be safety, because normally Temp directory must be empty. In case if some files currently used by other applications, they locked and you cannot delete them.
Second way - change path to temp directory especially for your application. Just add tmpdir key into assotiated ini file:
[app]
tmpdir=C:\MyApp\Temp
After that lvtl*.rsc; lvtr*.rsc will be created into this directory. You can safety delete these files after kill.
(Note, that "*" is pid of your application)
Third way - looking for all handles, which currently opened by your application. You can do this with some utilities, for example with Handle.exe from SysInternals.
For example for my simple application following output was generated (some not important lines are skipped):
Handle v2.2
App.exe pid: 656
cc: File C:\Temp\App_7.0_Administrator_cur.txt
144: File C:\Programme\National Instruments\Shared\LabVIEW Run-Time\7.0\lvapp.rsc
148: File C:\MyApp\App.exe
1f0: File C:\Temp\nix2E5.tmp
210: File C:\MyApp\Temp\lvtr656.rsc
214: File C:\MyApp\Temp\lvtl656.rsc
760: File C:\MyApp
Now you can parse output and looking for all currently opened temporary files, then kill your your application and then safety delete tmp and rsc files. Note, that files lvtl*.rsc and lvtr*.rsc are located in "local" temporary directory as described in ini file, but nix*.tmp still in "default" directory.
Hope it help a little bit...
Andre.

Similar Messages

  • " Can not interpret the data in file " error while uploading the data in DB

    Dear All ,
    After running the below report I am getting the " Can not interpret the data in file " error.
    Need to upload the data in DB through excel or .txt file.
    Kindly advise to resolve the issue.
    REPORT  ZTEST_4.
    data : it like ZPRINT_LOC occurs 0 with header line,
    FILETABLE type table of FILE_TABLE,
    wa_filetable like line of filetable,
    wa_filename type string,
    rc type i.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
    CHANGING
    FILE_TABLE = filetable
    RC = rc.
    IF SY-SUBRC = 0.
    read table filetable into wa_filetable index 1.
    move wa_filetable-FILENAME to wa_filename.
    Else.
    Write: / 'HI'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    start-of-selection.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    FILENAME = wa_filename
    FILETYPE = 'ASC'
    HAS_FIELD_SEPARATOR = 'X'
    TABLES
    DATA_TAB = it.
    IF SY-SUBRC = 0.
    Write: / 'HI'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    insert ZPRINT_LOC from table it.
    if sy-subrc = 0.
    commit work.
    else.
    rollback work.
    endif.
    Regards
    Machindra Patade
    Edited by: Machindra Patade on Apr 9, 2010 1:34 PM

    Dear dedeepya reddy,
    Not able to upload the excel but have sucess to upload the .csv file to db through the below code. Thanks for your advise.
    REPORT  ZTEST_3.
             internal table declaration
    DATA: itab TYPE STANDARD TABLE OF ZPRINT_LOC,
          wa LIKE LINE OF itab,
          wa1 like line of itab.
                       variable  declaration
    DATA: v_excel_string(2000) TYPE c,
           v_file LIKE v_excel_string VALUE    'C:\Documents and Settings\devadm\Desktop\test.csv',  " name of the file
            delimiter TYPE c VALUE ' '.         " delimiter with default value space
         read the file from the application server
      OPEN DATASET v_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc NE 0.
    write:/ 'error opening file'.
      ELSE.
        WHILE ( sy-subrc EQ 0 ).
          READ DATASET v_file INTO wa.
          IF NOT wa IS INITIAL.
            append wa TO itab.
          ENDIF.
          CLEAR wa.
        ENDWHILE.
      ENDIF.
    CLOSE DATASET v_file.
    EXEC SQL.
         TRUNCATE TABLE "ZPRINT_LOC"
    ENDEXEC.
    *------display the data from the internal table
    LOOP AT itab into wa1.
    WRITE:/ wa1-mandt,wa1-zloc_code,wa1-zloc_desc,wa1-zloc,wa1-zstate.
    ENDLOOP.
    insert ZPRINT_LOC from table itab.

  • How can we give the Data Format (File Type ) in Runtime

    Hi all,
    How can we give the Data Format (File Type ) in Runtime for the following method,
    cl_gui_frontend_services=>gui_download.
    Thanks in advance
    Sri

    There is a filetype parameter which you can set
    CALL METHOD cl_gui_frontend_services=>gui_download
      EXPORTING
    *    BIN_FILESIZE              =
        filename                  =
    *    FILETYPE                  = 'ASC'
    *    APPEND                    = SPACE
    *    WRITE_FIELD_SEPARATOR     = SPACE
    *    HEADER                    = '00'
    *    TRUNC_TRAILING_BLANKS     = SPACE
    *    WRITE_LF                  = 'X'
    *    COL_SELECT                = SPACE
    *    COL_SELECT_MASK           = SPACE
    *    DAT_MODE                  = SPACE
    *    CONFIRM_OVERWRITE         = SPACE
    *    NO_AUTH_CHECK             = SPACE
    *    CODEPAGE                  = SPACE
    *    IGNORE_CERR               = ABAP_TRUE
    *    REPLACEMENT               = '#'
    *    WRITE_BOM                 = SPACE
    *    TRUNC_TRAILING_BLANKS_EOL = 'X'
    *  IMPORTING
    *    FILELENGTH                =
      changing
        data_tab                  =
    *  EXCEPTIONS
    *    FILE_WRITE_ERROR          = 1
    *    NO_BATCH                  = 2
    *    GUI_REFUSE_FILETRANSFER   = 3
    *    INVALID_TYPE              = 4
    *    NO_AUTHORITY              = 5
    *    UNKNOWN_ERROR             = 6
    *    HEADER_NOT_ALLOWED        = 7
    *    SEPARATOR_NOT_ALLOWED     = 8
    *    FILESIZE_NOT_ALLOWED      = 9
    *    HEADER_TOO_LONG           = 10
    *    DP_ERROR_CREATE           = 11
    *    DP_ERROR_SEND             = 12
    *    DP_ERROR_WRITE            = 13
    *    UNKNOWN_DP_ERROR          = 14
    *    ACCESS_DENIED             = 15
    *    DP_OUT_OF_MEMORY          = 16
    *    DISK_FULL                 = 17
    *    DP_TIMEOUT                = 18
    *    FILE_NOT_FOUND            = 19
    *    DATAPROVIDER_EXCEPTION    = 20
    *    CONTROL_FLUSH_ERROR       = 21
    *    NOT_SUPPORTED_BY_GUI      = 22
    *    ERROR_NO_GUI              = 23
    *    others                    = 24

  • Can not access the media card files Blackberry 8310 - HELP

    Can not access the media card files Blackberry 8310.
     I had a battery drain problem. The unit would only last 16 hours before completely drained. Purchased a new battery with the same result. I figured that I should try a complete reset so I did a hard wipe. Once that was done and I loaded the unit back up and returned online, the battery drain problem was resolved but now I can not access the media card.
     Here are the messages:
     “A media card has been inserted that contains encrypted content which will be unaccessible by this device”
     I can see the files. I have transferred them to my PC via the SD card but I can not open them. Here are the settings:
     Media card support – ON
    Encryption Mode: - Security Password & Device
    Encrypt Media Files – YES
    Mass Storage Mode Support – OFF
     Please note – I can not change the encryption mode since it is set by policy
     Security Options – General Settings – Content Protection – Disabled
     The version of Desktop Manage I am using is 4.2.1.8. When I try to use the Media Manager to move the files, I get an error message and can’t move the file. If I access the file on the card and try to display it, I get:
     Unable to display file /media card/ pictures/ing000000xx.jpg.rem
     Here is what I have tried (from the advice on this board):
     1)     Read the files directly off the media card – No good
    2)     Create a “new” folder on the media card and move a file into it then try to read it – No good
    3)     Email the file then read it – No good
    4)     Reset Encryption mode to off then try – Can’t do it – IT Policy setting
    5)     Be sure that the password was set the same as before the wipe (setting is password & device) – Can’t do it – The Blackberry prevents me from using an old password.
     So I think I can’t read the files because I can’t replicate the encryption key. Could that be right? My problem is that I do not understand why this would be the case. It is still the same device and since it knows what the old password was (because it would prevent me from using it again), why would it not generate a key to access the files?
     All I am trying to get off the card are pictures on my 6 year old … some are priceless. Can someone help me do this? One would think that this should not be this hard but from all the postings I have found, it seems that it is. And yes, shame on me for not moving the files before I did the reset (THAT will never happen again!) but this being unrecoverable is unconscionable given how many seem to find themselves in this situation.
     Thanks for any help you can offer!

    Not sure why you couldn't see them using mass storage mode. Did you have the pics stored on your media card? Try going to media-menu-explore-media card-blackberry-pictures See what the extension is on your pics. If any have the extension such as .jpg.rem they are encrypted.
    IrwinII
    Please remember to "Accept as Solution" the post which solved your thread. If I or someone else have helped you, please tell us you "Like" what we had to say at the bottom right of the post.

  • Can I transfer the outlook pst file from one mac to another

    Can I transfer the outlook pst file from one mac to another?

    sure you can
    also to a windows pc and import it in a windows outlook

  • How can I delete the photos or files in my iCloud storage that is no longer needed?

    How can I delete the photos or files in my icloud storage that is no longer needed?

    Explain how it didn't work and what you are trying to delete.  Since icloud doesn't store photos except for those in a backup (then delete the backup); photos in photo stream do not count towards your storage limit.

  • How can I convert the ringtone (m4r file) I made into an mp3 file on itunes?

    How can I convert the ringtone (m4r file) that I made into an mp3 file on iTunes? I want to put it on a CD, but I can't figure out how to convert it. I didn't buy it, I made it by converting a YouTube video into an mp3 (I wanted to get the little song in the video for a ringtone.) I'm not sure what to do. 

    Hello ed2345,
    Thanks for the help, but this is not the problem.
    It's hard to describe the problem, but I'll try it again, this time with pictures.
    I was left with the following folders in the iTunes Downloads folder.
    http://www.picfront.org/d/7yb3
    These TMP Folders have a download.m4a and a Info.plist file.
    After moving the audio files in iTunes a bit I get this.
    http://www.picfront.org/d/7yb2
    As you can see no other Information for the download.m4a than the length.
    That's how the .m4p file looks like
    http://www.picfront.org/d/7yb1
    And this is how the same .m4a file currently looks
    http://www.picfront.org/d/7yb0
    Like I said, I could edit all these download.m4a files by myself but that would leave some information out.
    Note: Sorry, I hope the links do not spam you with annoying ads. I don't get any but I was told that there can be some annoying one.

  • How can I convert the ITHMB photo files to PC readable format like JPEG?

    How can I convert the ITHMB photo files on my new Iphone 4s to a PC readable format like JPEG

    Look at the link and follow instructions to convert the file taken from a different thread in this forum:
    https://discussions.apple.com/thread/2640386?start=0&tstart=0

  • How can i transfer the radio recording files from my Ipad to Computer

    how can i transfer the radio recording files from my Ipad to Computer ?

    I was hopeful I could use home sharing to sync my iTunes libraries,
    Unfortunately, you can only stream content to your iOS devices via home sharing (not sync it).
    I'd have a check through the following user tip instead:
    Recovering your iTunes library from your iPod or iOS device

  • How can I change the insert SWF File, I need to add a few things and make it better?

    How can I change the insert SWF File, I need to add a few things and make it better? Is there an option inside of the dreamweaver menu that I am not looking at. It would make it easier on me if I changed some things around and didn't have to do it all myself each time I used it. Just incase you was needing to remember what swf flash was, It is not a swf video either.
      <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="640" height="480">
        <param name="movie" value="Sonic Kaboom.swf">
        <param name="quality" value="high">
        <param name="wmode" value="opaque">
        <param name="swfversion" value="9.0.115.0">
        <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
        <param name="expressinstall" value="../Scripts/expressInstall.swf">
        <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="Sonic Kaboom.swf" width="640" height="480">
          <!--<![endif]-->
          <param name="quality" value="high">
          <param name="wmode" value="opaque">
          <param name="swfversion" value="9.0.115.0">
          <param name="expressinstall" value="../Scripts/expressInstall.swf">
          <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
          <div>
            <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
            <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
          </div>
          <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object>
    </div>

    If I understand correctly, Sonic Kaboom.swf needs to be edited in a separate Flash authoring program and then reinserted into your HTML document. 
    As Murray said, Flash is dead.  Nobody uses it anymore.   We use HTML5, CSS3 and JavaScript animations which have universal support from Smartphones, Tablets and other web devices that can't support Flash.   Look at Edge Animate.
    HTML animation | Download free Adobe Edge Animate CC trial
    Nancy O.

  • To test how can we use the opt  'logical file name' to name the file based

    Hi Sir/Madam,
               to test how can we use the opt  'logical file name' to name the file based on the selection made in the dtp run for extracting data as flat file.

    Hi Vishali,
    In the DTP select the file location as application server and give the logical file path. The actual file and logical path can be created using transaction "FILE" and "AL11".
    Rest of the process is same as that of extraction from local file.
    Regards,
    Durgesh.

  • I recently upgraded to a G5 and Logic Pro 8. My previous system was a Power Mac 7200 with Logic Platinum 3.5.3. I can not open the old song files unless they are first saved in Logic 6 or 7. Where do I get a dongle for Logic 7?

    I recently upgraded to a G5 and Logic Pro 8. My previous system was a Power Mac 7200 with Logic Platinum 3.5.3. I can not open the old song files unless they are first saved in Logic 6 or 7. Where do I get a dongle for Logic 7?

    eBay or Craigslist would be the only choice.

  • Where can I find the latest cab file?

    Where can I find the latest cab file? for example:
    CODEBASE=http://java.sun.com/update/1.5.0/jinstall-1_5_0_05-windows-i586.cab
    CLASSID=clsid:5852F5ED-8BF4-11D4-A245-0080C6F74284 It is not available on this page: http://java.com/en/download/manual.jsp
    I am deploying using web start. So I need it.
    thanks,
    Anil

    Download Java EE SDK, install it and finally in the lib directory you'll find the javaee.jar. It contains the whole javax package you need.

  • Where can I find the a downloaded file by Software update?

    Where can I find the a downloaded file by Software update?
    For example is there any way to find a package which is downloaded but is not installed(because the installation failed) (in this case 10.5.5) and I don't want to download it once again neither manually nor with software update.

    sina_golesorkhi wrote:
    Where can I find the a downloaded file by Software update?
    In ~/Downloads
    For example is there any way to find a package which is downloaded but is not installed(because the installation failed) (in this case 10.5.5)
    Failed installs usually remove the package, just as a proper install removes the package
    All that remains for a proper installation is a Receipt in on of the following directories:
    ~/Library/Receipts (for user-specific installs)
    Macintosh HD/Library/Receipts
    for system-wide installations, including OS-X updates.
    and I don't want to download it once again neither manually nor with software update.
    If it did not install, there is no Receipt and the downloaded file is not on your system
    If you don't want to see it again in automatic updates, put it on ignore.

  • My iPad is filling up my PowerBook hard disk. Where can I find the sync Photo file to delete it ?

    Hi
    My iPad is filling up my PowerBook hard disk. Where can I find the sync Photo file to delete it ?
    Copying over photos via iTunes/iPhoto - there is a back-up file created (I can not turn it off) and it's now filling my PB-Pro.
    So I need to find it and trash it and start over.
    - Where is it located ?
    - What is it's name ?
    Yours Bengt W

    Thank You
    I found my iPhoto library
    ctrl-clicked on it and opened package/content
    here I found the iPod photo cashe folder
    copyed this to a safe hard disk
    then deleting it's content
    and my memory/free space on boot drive is back
    So I hope all's well.
    Yours Bengt W

Maybe you are looking for