Results 1 to 4 of 4

Thread: Configuring a program that executes only once.

  1. #1
    Join Date
    Dec 2010
    Posts
    216

    Configuring a program that executes only once.

    I am working for the company. The entire users are working on the same application .That application is installed on every PC. When we try to run second time that application it prompts an error message. Every day we are facing the same problem. We are unable to do our daily works. We will really appreciate if you can provide appropriate solution. We are thanking you in advance for your replies

  2. #2
    Join Date
    Jun 2009
    Posts
    1,518

    Re: Configuring a program that executes only once.

    That’s very bad! Well I am writing some code simply try on your code it may work. tasklist /FI "IMAGENAME eq notepad.exe" 2>NUL | find /I /N "notepad.exe">NULIF %ERRORLEVEL% == 0 GOTO popup IF %ERRORLEVEL% == 1 GOTO EXEC :popup run command prompt and type. /C "ECHO Application Already Running, Press any key to close this window&& PAUSE":EXEC start notepad.exe :EXIT Note that you should replace the name of program with notepad.exe.

  3. #3
    Join Date
    Nov 2008
    Posts
    1,192

    Re: Configuring a program that executes only once.

    You can run the following batch file to fix the problem I hope it will work for you. tasklist /FI "IMAGENAME eq notepad.exe" 2>NUL | find /I /N "notepad.exe">NUL IF %ERRORLEVEL% == 0 GOTO EXIT IF %ERRORLEVEL% == 1 GOTO EXEC :EXEC start notepad.exe :EXIT It will exit the command prompt. Write the name of program instead of notepad.exe. It’s a cleaner batch file allows the user to select any icon as short cut that user want. Thanking you for the using this solution.

  4. #4
    Join Date
    Nov 2008
    Posts
    1,054

    Re: Configuring a program that executes only once.

    You can also try another batch file which is as follow. You should create $oem$ directory inside I386 directory. You have to export Runonce.ini from the registry. I should like REGEDIT4[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]@="c:\\WinNT\\System32\\Calc.exe" Regedit.exe should be copied in to $oem$ directory. Write the following line in the text editor. Save as Cmdlines.txt. OEMPREINSTALL should be set to yes. you should run the unattended setup

Similar Threads

  1. Windows DEP program continuously closes the MSN mail program
    By Charioteer in forum Windows Software
    Replies: 4
    Last Post: 19-10-2010, 11:52 AM
  2. Blank Home screen issues when Rosetta Stone executes
    By Javiier in forum Windows Software
    Replies: 3
    Last Post: 07-06-2010, 01:08 PM
  3. Replies: 6
    Last Post: 24-05-2010, 10:45 AM
  4. Replies: 3
    Last Post: 13-04-2010, 01:27 PM
  5. Java program compiles but does not executes
    By ISAIAH in forum Software Development
    Replies: 5
    Last Post: 14-01-2010, 04:01 PM

Tags for this Thread

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
  •  
Page generated in 1,749,992,880.22426 seconds with 16 queries