VideoHelp Forum




+ Reply to Thread
Results 1 to 10 of 10
  1. Member
    Join Date
    Apr 2006
    Location
    United States
    Search Comp PM
    This command line I got from someone on this site and is in a batch file and wherever this batch file resides, it will loop through and get all the ".mpv" files and do a pulldown on them.

    <command>
    for %%a in ("*.mpv") do "D:\Storage\source\exe\dgpulldown1011\DGPulldown.exe" %%a -srcfps 23.976 -destfps 29.97 -o dgp_%%a
    </command>

    In DOS, how can I make it to where the output "-o" goes into a directory that I specify? I have looked all over the Internet and cannot find the answer. As of now, it goes into the same directory and I would like to get rid of the "dgp_" and have it go into another directory.
    Quote Quote  
  2. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    -o \outputdirectory\%%a
    Quote Quote  
  3. Member
    Join Date
    Apr 2006
    Location
    United States
    Search Comp PM
    Originally Posted by Soopafresh
    -o \outputdirectory\%%a
    Thanks for the response.

    I get pop up errors saying it cannot open the output directory. I think it is because the output directory has spaces in it, any ideas?
    Quote Quote  
  4. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    -o "\Output Directory With spaces\%%a"
    Quote Quote  
  5. Member
    Join Date
    Apr 2006
    Location
    United States
    Search Comp PM
    Originally Posted by Soopafresh
    -o "\Output Directory With spaces\%%a"
    Hmm, I changed it to c:\temp and still got the error.

    Let me try changing it back to the directory with spaces and try your way.

    Thanks for your patience
    Quote Quote  
  6. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    If you run this from the command line, you have to remove 1 of the % from the variables. If you run it from a batch file, you keep both %% in the script.

    %a = command line

    %%a = batch file
    Quote Quote  
  7. Member
    Join Date
    Apr 2006
    Location
    United States
    Search Comp PM
    Originally Posted by Soopafresh
    If you run this from the command line, you have to remove 1 of the % from the variables. If you run it from a batch file, you keep both %% in the script.

    %a = command line

    %%a = batch file
    I am running it from the batch file. Meaning I click on the batch file.

    Here is what I have tried:

    -o "c:\temp\%%a"
    -o c:\temp%%a
    -o \c:\temp\%%a
    -o "\c:\temp\%%a"

    None seem to work
    Quote Quote  
  8. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    Try
    for %%a in ("*.mpv") do "D:\Storage\source\exe\dgpulldown1011\DGPulldown.exe" "%%a" -srcfps 23.976 -destfps 29.97 -o "c:\temp\%%a"
    Quote Quote  
  9. Member
    Join Date
    Apr 2006
    Location
    United States
    Search Comp PM
    Originally Posted by Soopafresh
    Try
    for %%a in ("*.mpv") do "D:\Storage\source\exe\dgpulldown1011\DGPulldown.exe" "%%a" -srcfps 23.976 -destfps 29.97 -o "c:\temp\%%a"
    You're a genius dude, that worked.

    So if I want to have this run through the command line, I need to use 1 % instead of 2 correct?
    Quote Quote  
  10. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    Yeah, it'll complain if you try 2 %% from the command line
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!