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

Parameters in a vbs script #2380

Closed
JoanC2 opened this issue Feb 14, 2014 · 2 comments
Closed

Parameters in a vbs script #2380

JoanC2 opened this issue Feb 14, 2014 · 2 comments

Comments

@JoanC2
Copy link

@JoanC2 JoanC2 commented Feb 14, 2014

I'm trying to write a vbs script file to download different videos running youtube -dl with the run method. I need to pass the parameters in string variables, but I have problems to do it.

An example of what I've tried:

Set objShell = WScript.CreateObject("WScript.Shell")
Dim Parameter as string

Parameter = "https://www.youtube.com/watch?v=thevideo"

objShell.Run ""'youtube-dl" & Parameter", 1, True

Doesnt work, I think due to the quotes. Tried different ways, but can't manage to do it. Can somebody please tell me how to write it correctly? Maybe I should use some other method?

Thanks in advance ;)

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Feb 14, 2014

This should work: objShell.Run "youtube-dl " & Parameter, 1, True

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Feb 16, 2014

I'm closing the issue since it looks like it isn't a problem in youtube-dl.

@jaimeMF jaimeMF closed this Feb 16, 2014
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
3 participants
You can’t perform that action at this time.