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

Downloading a file form Visual Studio and change the file name is not working #13457

Closed
Ailincai-Nicolae-Rares opened this issue Jun 21, 2017 · 1 comment
Labels

Comments

@Ailincai-Nicolae-Rares
Copy link

@Ailincai-Nicolae-Rares Ailincai-Nicolae-Rares commented Jun 21, 2017

I am trying to download a file from youtube in Visual Studio but when i want to change the file name, is not working. I Mean the file is not downloaded.
` private Process downlaodMusic(string url, string fileName)
{
Process currentsong = new Process();

        currentsong.StartInfo = new ProcessStartInfo
        {
            FileName = "cmd.exe",
            Arguments = $"/C youtube-dl.exe {url} -output {fileName}",
            UseShellExecute = false,
            RedirectStandardOutput = true,
            CreateNoWindow = true
        };

        currentsong.Start();
        return currentsong;
    }`
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 21, 2017

Long options must be written with double dash --output.

@dstftw dstftw closed this Jun 21, 2017
@dstftw dstftw added the invalid label Jun 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.