ID #1714

How to allow running only one instance of FusionRetail 6?

 

Scenario:

Sometimes the POS operators tend to minimize the software to use other application. When it comes to ring a sale, they accidently open up another instance of software. This results in error in printing as the printer ports are blocked by other instance.

Solution:

Use notepad to create a batch file with code defined at the end. The batch file is a simple text file with .bat as file extension. This batch (.BAT) file is executable which will allow Fr6 to run only once. Just place the batch file at the desktop. Also remove the FR6 icon from the desktop. 

 

Code:

:: Fr6SingleInstance.Bat Start :::::::::::::::::::::::::::
@echo off
:: This line finds if the RanceLab® FusionRetail™ 6 is already running
tasklist|find /i /c "FusionRetail.exe" > nul
:: This line
set INSTANCE=%errorlevel%
if "%INSTANCE%"=="0" goto already
:: Please change the path if you have installed in other folder
start D:\FusionRetail6\FusionRetail.exe %1
:: «%1» is the name and path of the file you want to run.
goto end
:already
echo. & echo RanceLab® FusionRetail™ 6 is already running.
echo. & echo Press spacebar to end this batch file.
pause>nul
:end
set INSTANCE=
exit
:: Fr6SingleInstance.Bat End:::::::::::::::::::::::::::

Tags: Installation

Related entries:

You cannot comment on this entry