Simple Batch File Does not work in Freecommander XE

Discussion, questions and support.
Post Reply
Message
Author
freddo
Posts: 22
Joined: 25.05.2008, 03:24

Simple Batch File Does not work in Freecommander XE

#1 Post by freddo » 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

horst.epp
Posts: 515
Joined: 15.11.2008, 20:18

Re: Simple Batch File Does not work in Freecommander XE

#2 Post by horst.epp » 01.12.2020, 14:38

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.
Windows 11 Home, Version 24H2 (OS Build 26100.4061)
Everything Version 1.5.0.1393a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
FreeCommander XE 2025 Build 932 64-bit donor

Karol
Posts: 987
Joined: 19.08.2007, 12:05

Re: Simple Batch File Does not work in Freecommander XE

#3 Post by Karol » 01.12.2020, 15:01

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".

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest