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
Simple Batch File Does not work in Freecommander XE
Re: Simple Batch File Does not work in Freecommander XE
Sorry, from where did you get this strange variables ?
Make a button in FC and click on the ... on the end of the parameter field.
to see what you can add as parameters.
In you batch file this are of course the variables %1 %2 and so on.
Make a button in FC and click on the ... on the end of the parameter field.
to see what you can add as parameters.
In you batch file this are of course the variables %1 %2 and so on.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3447)
Everything Version 1.5.0.1372a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
FreeCommander XE 2024 Build 906 64-bit donor
Everything Version 1.5.0.1372a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
FreeCommander XE 2024 Build 906 64-bit donor
Re: Simple Batch File Does not work in Freecommander XE
CD is built-in variable with the value: "The current directory".
In FreeCommander (current 833) and in Explorer it is the folder from address bar and not "the folder under the cursor".
In FreeCommander (current 833) and in Explorer it is the folder from address bar and not "the folder under the cursor".
Who is online
Users browsing this forum: Google [Bot] and 50 guests