Quantcast
Channel: VB 2010 Progress Bar.
Viewing all articles
Browse latest Browse all 41

VB 2010 Progress Bar.

$
0
0

But when I copy the files, the app freezes. I am copying big files at when ever I copy files. I wouldn't have to if I knew how to output text to a text file and save it as .bat. The way I am doing that right now is using the shell to use the command prompt to create the batch files with Echo what ever>> Target directory . But I need to copy the files to a directory and file name that does not have any spaces in it so it can be accessed by the command prompt, because I don't know how to put quotes, inside of a quote. For example.

This is what makes the batch file:

 

Shell(Environ$("Comspec") & " /c Echo ffmpeg -i %SystemDrive%\Videos\Temp\Video\M2tsD_Video_Temp.mkv -vn -acodec copy -sn " & AOtPtM2tsD & ">> %SystemDrive%\Videos\Temp\Jobs\M2tsMakeFileD.bat") 

 

The real directory for the input is actually something like this:

C:\Users\Metroidn1f\Downloads\Movies\Exam 2009 720p BluRay x264\avchd-exam.2009.720p.mkv

But the only problem is that there is spaces in it, and the command prompt will only recognize it up to \movies\exam If I could get it to look like this:

 

Shell(Environ$("Comspec") & " /c Echo ffmpeg -i "C:\Users\Metroidn1f\Downloads\Movies\Exam 2009 720p BluRay x264\avchd-exam.2009.720p.mkv" -vn -acodec copy -sn " & AOtPtM2tsD & ">> %SystemDrive%\Videos\Temp\Jobs\M2tsMakeFileD.bat") 

 

Note the quotes after the ffmpeg -i, I don't know how to do that. I tried using ', but that did not work. I would actually prefer creating the batch file through VB instead of using the command line. If I knew how to put quotes inside of quotes, there would be no need to copy the file to a temp directory that has no spaces in it, saving time.

Does anyone know how to help me?

       -Put quotes in quotes

       -Create batch file through VB

 

Also, how to I set the savefiledialog so it can only stay in the initial directory, and can go no where else, in other words, the user can only save a file to the initial directory?


Viewing all articles
Browse latest Browse all 41

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>