+ Reply to Thread
Results 1 to 3 of 3

Thread: File Lock in ASP

  1. #1
    bnq
    Guest

    File Lock in ASP

    300.000 Free softwares download here
    Hi All,



    Is there any way to get a file lock in ASP so that no one else can write to file at that particular time and when I call releaseLock, the lock will be released?



    I would appreciate any help in this regard. Thanks in advance!!







    Best Regards,

    Inderpal Singh
    More Information:
    1. Scripts that store data in files need to use file-locking to avoid data-corruption, and they also need to break the data
    2. ImageDraw is a server control which generates real time on-fly images for ASP
    3. After that the blasted page just threw a IO exception at me--another process has an exclusive lock on the file and I can't READ it! Turns
    4. In this article, a very simple method is demonstrated for logging text data in an asp
    5. Fix the bug when locking PHP and ASP pages when there are spaces in the username and
    6. 6 posts - 3 authors - Last post: Feb 1I can also wait for a period of time and the IIS lock will time out and the file can be overwritten or deleted as you normally would expect as a user of a web
    7. 4 posts - 4 authors - Last post: Apr 19, 2006How to Lock User in ASP
    8. 4 posts - 3 authors - Last post: Jun 6, 2007How to prevent ldb lock files- Microsoft Access Development

  2. #2
    vietlinhtalk
    Guest

    Sure. Use an application variable.




    Code:

    if Application("FILELOCKED")<>"true" then
    Application("FILELOCKED")="true"
    'do stuff with the file
    Application("FILELOCKED")="false"
    end if

    To make it wait for the lock, instead of IF...THEN, use DO...LOOP.

    If you're going to have a lot of connections to your site, you need to make sure two people don't execute the filelock check at the same time, because both would show it was unlocked then both would try to lock it. To do that, you'll have to use Application.Lock.
    More Information:
    1. write permissions to the folder where the Access file is located
    2. Allows you to add/delete/edit entries and includes column sorting, automatic links, and a file lock for
    3. When SQLite tries to access a file that is locked by another process, the default behavior is to return SQLITE_BUSY
    4. Add: An option "Generate a standalone login file for each locked HTML file" in Step 3, Advanced Options dialog
    5. Visit Dev Articles to discuss How to prevent ldb lock files

+ Reply to Thread

Similar Threads

  1. PCI lock - always good?
    Archived from groups: alt.comp.hardware.overclocking.amd () PCI lock is getting a lot of attention here the last couple of weeks. I'd like to know...
  2. BF6 - Ram slot lock
    Archived from groups: alt.comp.periphs.mainboard.abit () Hi, i've got a pb why my BF6 mother board. One of my ram slot has got a pb and the boot...
  3. Usb file transfer lock up
    Yesterday i transfer some files in my pc through USB after that when i clicked on safely remove USB didn't stop after some time my pc hang remove the...
  4. Multiplier lock
    What happens when you change your multiplier jumper without unlocking it? Does it fail to boot or does it not matter? TBird 800 - Asus A7V 1005a...
  5. can`t lock PCI-E Frequency
    hey , i have some problems with my overclocking. first my system : Intel Core™2 Duo E6300 GigaByte 945P-S3 s775 PQI 1024MB TURBO CL4 OCZ...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Welsh Yiddish