RanceLab

Find answers to common RanceLab questions, browse curated FAQ sections, and search across the knowledge base.

FAQ
Settings
/Database Mantinance
/SQL Server

How to allow running only one instance of RanceLab Software?

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 Software 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:\RanceLab Software\FusionRetail.exe %1
:: «%1» is the name and path of the file you want to run.
goto end
:already
echo. & echo RanceLab Software is already running.
echo. & echo Press spacebar to end this batch file.
pause>nul
:end
set INSTANCE=
exit
:: Fr6SingleInstance.Bat End:::::::::::::::::::::::::::