Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6

Thread: Folder Create

  1. #1
    Join Date
    Jul 2006
    Posts
    22

    Grin Folder Create

    i need to check if
    c:\programs files\factorysuite\ioservers\ak2 exist but allway tell me that not exist why ??

    bIOPath1 = Folder.DoesExist(_ProgramFilesFolder.."\\FactorySu ite\ioservers\ak2");
    if bIOPath1 == 1 then
    Dialog.Message("Aviso", "Exist !!");
    else
    Dialog.Message("Aviso", "Not exist !!");
    end

    then if i tryu to diaply the bIOPath1 value using dialog.message i have an error.

    Any body knows why ??

    Best Regards

  2. #2
    Join Date
    May 2005
    Posts
    1,115
    Try changing this line:

    if bIOPath1 == true then
    Never know what life is gonna throw at you.
    (Based on a true story.)

  3. #3
    Join Date
    Mar 2004
    Location
    Toronto, ON CANADA
    Posts
    696
    And this line:
    Code:
    bIOPath1 = Folder.DoesExist(_ProgramFilesFolder.."\\FactorySuite\ioservers\ak2");
    to this:
    Code:
    bIOPath1 = Folder.DoesExist(_ProgramFilesFolder.."\\FactorySuite\\ioservers\\ak2");

  4. #4
    Join Date
    Jul 2006
    Posts
    22

    Oops til have a problem

    bIOPath1 = Flase;
    bIOPath2 = Flase;
    result = Dialog.Message("Importante", "Ya estan Instalados los IOServers ?", MB_YESNO, MB_ICONQUESTION);
    if result == 6 then
    bIOPath1 = Folder.DoesExist(_ProgramFilesFolder.."\\FactorySu ite\\IOServer\\ABKF2");
    if bIOPath1 == True then
    Dialog.Message("Aviso", "Directorio Existe !!");
    else
    Dialog.Message("Aviso", "Directorio No existe !!");
    end
    end

    The folder exist i dont know where is the problema ?????????
    Attached Images

  5. #5
    Join Date
    Oct 2005
    Location
    MI
    Posts
    524
    Boolean values are case sensitive and must be true or false.
    By this token, True and Flase are not valid boolean value and will cause errors.

    Here are some updates to your code with changes marked in red:

    Code:
    bIOPath1 = false;
    bIOPath2 = false;
    result = Dialog.Message("Importante", "Ya estan Instalados los IOServers ?", MB_YESNO, MB_ICONQUESTION);
    if result == 6 then
    bIOPath1 = Folder.DoesExist(_ProgramFilesFolder.."\\FactorySuite\\IOServer\\ABKF2");
    if bIOPath1 then
    Dialog.Message("Aviso", "Directorio Existe !!");
    else
    Dialog.Message("Aviso", "Directorio No existe !!");
    end
    end
    Yeah right. Who's the only one here who knows the illegal ninja moves from the government?

    ()))))))))o)))))))==============================================

  6. #6
    Join Date
    Jul 2006
    Posts
    22

    Thanks

    Works !!!, Thank you very much !!

Similar Threads

  1. how can i create a folder in the same folder of the app?
    By shanhai in forum AutoPlay Media Studio 5.0
    Replies: 3
    Last Post: 06-14-2005, 09:34 AM
  2. cookies
    By goukilord10 in forum AutoPlay Media Studio 5.0
    Replies: 6
    Last Post: 05-20-2005, 04:08 PM
  3. HOWTO: Create a Project Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-28-2002, 01:49 PM
  4. HOWTO: Create a Page Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-26-2002, 05:20 AM
  5. HOWTO: Create an Empty Folder
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-21-2002, 03:21 PM

Posting Permissions

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