Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2006
    Posts
    63

    Hello . plz How can I prevent the user to run the program

    Hello . plz How can I prevent the user to run the program I made more one time at the same time ... I mean he running the program and if he tried to run it again with the same program is running he will see message says the program is running you can't run the program again .

  2. #2
    Join Date
    Mar 2004
    Location
    Michigan
    Posts
    169
    Try: http://www.indigorose.com/forums/sho...ight=instances

    That should get you started.

    Sue

  3. #3
    Join Date
    Nov 2006
    Posts
    63
    thank you very much sue

  4. #4
    Join Date
    Oct 2007
    Location
    Gensokyo
    Posts
    1,324
    If all fails read the manual.

    Code:
    instances_of_file = 0;
    file_to_check_for = "autorun.exe"; --have all lowercase
    processes = System.EnumerateProcesses();
    
    for j, file_path in processes do
        file = String.SplitPath(file_path);
        if (String.Lower(file.Filename..file.Extension)) == file_to_check_for then
    Dialog.Message("", "There are more than one instances of "..file_to_check_for.."!");
    System.TerminateProcess(j);
        end
    end

  5. #5
    Join Date
    Nov 2006
    Posts
    63
    thank you

Similar Threads

  1. ANSI To UNICODE Is Finished!
    By coderanger in forum AutoPlay Media Studio 6.0
    Replies: 7
    Last Post: 08-13-2007, 09:27 AM
  2. Setup Factory and VS 2005
    By vazir786 in forum Setup Factory 7.0
    Replies: 4
    Last Post: 01-13-2006, 08:47 PM
  3. Prompt User to run Program after Installation
    By OHDev in forum Setup Factory 6.0
    Replies: 8
    Last Post: 10-13-2005, 12:25 PM
  4. Run Program - New User
    By gpearson in forum AutoPlay Media Studio 6.0
    Replies: 8
    Last Post: 10-06-2005, 07:33 AM
  5. HOWTO: Make a Program Run Every Time the System Starts
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-01-2002, 09:44 AM

Posting Permissions

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