Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"ERROR: batch file could not be read", when I call the CLI without specifying a path to the executable file #15970

Closed
roman90sv opened this issue Mar 23, 2018 · 3 comments
Labels

Comments

@roman90sv
Copy link

@roman90sv roman90sv commented Mar 23, 2018

  • I've verified and I assure that I'm running youtube-dl 2018.03.20

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)

Description of your issue, suggested solution and other information

I have added directory to PATH Environment Variable to avoid specifying a path to youtube-dl in the CLI.
But, when I call the CLI without specifying a path to the executable file, batch.txt could not be read.
See attached screenshot
1

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 23, 2018

So what? There is no batch.txt in C:\Windows\system32 that is clearly stated in the error message. PATH have nothing to do with arguments and their values passed to youtube-dl.

@dstftw dstftw closed this Mar 23, 2018
@dstftw dstftw added the invalid label Mar 23, 2018
@roman90sv
Copy link
Author

@roman90sv roman90sv commented Mar 23, 2018

I thought that youtube-dl looks for batch file in the same directory, if path is not specified.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 23, 2018

If it will look in the same directory then it would be impossible to specify paths relative to a current directory. It's a standard and idiomatic behavior.

@ytdl-org ytdl-org locked and limited conversation to collaborators Mar 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.