When the TC button executes a command, how to switch to the running directory first

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
xxxdo1
Junior Member
Junior Member
Posts: 87
Joined: 2024-11-03, 02:45 UTC

When the TC button executes a command, how to switch to the running directory first

Post by *xxxdo1 »

cmd=D:\Aria2\Aria2.exe --conf-path=aria2.conf

I use the TC button to execute the above command, and Aria2.exe cannot find the aria2.conf file

When the TC button executes a command, how to switch to the running directory first
For example: using bat, first cd D:\Aria2 and then execute Aria2.exe --conf-path=aria2.conf

This way it can find the aria2.conf file

Or is there any other way to find aria2.conf without using absolute paths and environment variables?
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Re: When the TC button executes a command, how to switch to the running directory first

Post by *Gral »

Fill "Start path" field for button with appropiate path - http://gral.y0.pl/tc/images/change_single_button.png
User avatar
xxxdo1
Junior Member
Junior Member
Posts: 87
Joined: 2024-11-03, 02:45 UTC

Re: When the TC button executes a command, how to switch to the running directory first

Post by *xxxdo1 »

Oh, solved it, I forgot about this option, thanks
User avatar
white
Power Member
Power Member
Posts: 5747
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: When the TC button executes a command, how to switch to the running directory first

Post by *white »

Moderator message from: white » 2025-01-21, 18:54 UTC

Moved topic
» from TC suggestions (English) to Total Commander (English)
Post Reply