batch File code to open Freecommander in test mode for debugging

Discussion and questions - donor version.
Post Reply
Message
Author
stephen147
Posts: 370
Joined: 18.10.2015, 16:44

batch File code to open Freecommander in test mode for debugging

#1 Post by stephen147 » 11.07.2019, 00:00

Thought I'd share this with you all. It's an easy way to run a test environment for FC to check for bugs.
  • Copy this code below to a new file with an extension cmd or bat to look like so: FreeCommander Clean Settings.bat.
  • Save the file in the same folder as the Freecommander.exe.
  • Double click the FreeCommander Clean Settings.bat after closing any instances of FC first.

Code: Select all

@echo off
color 5F
cd /d "%~dp0"
echo.
set "INI_FILE=FreeCommander.ini"
set "FOLDER=SettingsTestEnvironment"
set "FULLPATH=%FOLDER%\%INI_FILE%"
set "FOLDERPATH=%CD%\%FOLDER%"
title FreeCommander Test Environment [%~nx0] by Stephen Sherry
echo.------------------------------------------------------
echo.Starting FreeCommander.exe with default test settings
echo.------------------------------------------------------
echo.
echo:Does the %FOLDER% folder exist?
if not exist "%FOLDER%" (
echo.No. Creating folder:
echo."%FOLDERPATH%"
) else (
echo.Yes
)
echo.
echo.------------------------------------------------------
echo.
echo.FreeCommander Path Argument:
echo.%FULLPATH%
echo.
echo.------------------------------------------------------
echo.
pause
echo.starting the test environment now:
Start FreeCommander.exe /N /NewIni="%FULLPATH%" /NoPlugins /Lng=English
exit
Sceenshots made easy with ShareX.

Post Reply

Who is online

Users browsing this forum: No registered users and 45 guests