'Opening tor.exe with specific torrc file with Python Windows11

I'm trying to open tor.exe with a specific torrc file but its not working.I couldn't find anything on Google about it so I'm asking you. With the following code tor.exe is not running. Can you tell my why?

import os
os.system(
    "Start C:/Users/admin/Desktop/Tor Browser/Browser/TorBrowser/Tor/tor.exe /f C:/Users/admin/Desktop/Tor Browser/Browser/TorBrowser/Tor/torrc"
)


Solution 1:[1]

Keep in-mind that you're running this program threw cmd. Change directory by os.system('cd C:/Users/admin/Desktop/Tor/Browser/Browser/TorBrowser/Tor/')

Then execute tor.exe by os.system('start tor')

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Bain