lundi 13 avril 2015

WINDOWS BATCH: How to Pass content of text file as parameter?

I want to have a little batch script, that uploads a video to youtube. Therefore I use pythons youtube upload.


In the documentation of this script it is said one can pass a txt file as parameter:



Upload a video with a description from file (description.txt):


$ youtube-upload --email=myemail@gmail.com --password=mypassword --title="A.S. Mutter" --description="$(< \description.txt)" --category=Music --keywords="mutter, beethoven" anne_sophie_mutter.flv



The bold part is the one I could not manage to work. As far as I understand this example is based on unix batch and not windows batch.


So my question is: What is the windows batch equivalent to $(< \description.txt) ?


Aucun commentaire:

Enregistrer un commentaire