Acceptable Use Policy. Advanced Search. If you want to start fresh then ask about that. Post the exact Shell statement you are using include the assignment statements of any variable that you use in the Shell statement. Solutions Learn More Through Courses. Strange that the DOS window doesn't close and that the command in the batch file doesn't run The links that Simple Samples gave in his first post is exactly what you need. I wear a lot of hats The above assumes you do NOT have to wait for this file to be completely written before your code continues executing. Then don't use concepts from other program languages.
I have been using a Command Line program to merge PDF files.
Read/Write data to StdIn/Out using VB
So I call this “ ” inside my ShellAndWait and try to redirect the output to a text file, but it is. This mean we're using an async approach that fits the VB6. Shell "C:\YourPath\ > " You can then read it in VB6 in a simple open "filename" for input as #1. I'm having an issue with a VB6 program running a batch file.
Actually, I have a DOS program that I need to have run and have output redirected to a file, or to test.
It is just not working from VB.
Microsoft Applications. Patrick Marshall Guest. Edited by Frank L. Reply with what is asked, now it seems to me you try to troll with all kind of nonsense. Microsoft's search engine has become useless.
Using Shell to pass in parameters and redirect output
- Create a Batch file containing the basic redirection operation: >. This class capture the outpus of a DOS application via API functions, redirecting the stdOutput pipe and the stdErr pipe of a DOS application from the screen to. Thread: Using "Shell" to pass in parameters and redirect output.
share-icon CodeGuru Article: Bound Controls are Evil-VB6 Samples.
Notice two things: It's being done totally in memory and it's being done with a ZipEntry. If this is your first visit, be sure to check out the FAQ by clicking the link above.
vb6 Shell process' standard output reading in Visual Basic 6 Stack Overflow
What types of files are you loading or are you just getting filenames or something? You might have to use a shell function that forces DOS to run in a synchronous shell. To start viewing messages, select the forum that you want to visit from the selection below.
Advertiser Disclosure. Reply With Quote.
Video: Vb6 cmd output redirection Tutorial: Redirecting Linux Command Line Output to a File