Create temp file when app opens

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ianhull
    Forum Member
    • Jul 2004
    • 314

    Create temp file when app opens

    Hi all i need to create a temp file in \\\\svr1\\d\\ when my app opens and I need to display a message if the file already exists so that other users cannot overwrite the same file.

    can anyone please help me achieve this?

    thanks in advance.
  • TJ_Tigger
    Indigo Rose Customer
    • Sep 2002
    • 3159

    #2
    Not actual code but something like this should work.

    result = File.DoesExist("\\\\svr1\\dir\\Filename.txt");
    if result then
    question = Dialog.Message("Error", "This file already exists, do you want to overwrite the file?", MB_YESNO, MB_DEFAULT1, MB_ICONQUESTION);
    if question == IDYES then
    --overwrite file
    else
    --don't overwrite file
    end
    end
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

    Comment

    Working...
    X