Simple Batch File Does not work in Freecommander XE
Posted: 01.12.2020, 02:02
I want to use a bat file to delete the folder under the cursor in FC XE. The file is
@ECHO OFF
ECHO Delete Folder: %CD%?
PAUSE
SET FOLDER=%CD%
CD /
ECHO Folder to delete is: %FOLDER%
PAUSE
DEL /F/Q/S "%FOLDER%" > NUL
RMDIR /Q/S "%FOLDER%"
EXIT
It works fine in Explorer but FC always has the folder C:\Program Files (x86)\FreeCommander XE in %CD% and in %FOLDER%
What do I need to change so the Folder under the cursor in FC is recognised
Thanks
@ECHO OFF
ECHO Delete Folder: %CD%?
PAUSE
SET FOLDER=%CD%
CD /
ECHO Folder to delete is: %FOLDER%
PAUSE
DEL /F/Q/S "%FOLDER%" > NUL
RMDIR /Q/S "%FOLDER%"
EXIT
It works fine in Explorer but FC always has the folder C:\Program Files (x86)\FreeCommander XE in %CD% and in %FOLDER%
What do I need to change so the Folder under the cursor in FC is recognised
Thanks