|
-
Oct 7th, 2022, 01:53 PM
#1
Thread Starter
Addicted Member
-
Oct 7th, 2022, 01:58 PM
#2
New Member
Re: Shell CMD Text output format
Hello!
have you ever tried to concatenate "vbCrlf"?
Code:
Do While Not objExecObject.StdOut.AtEndOfStream
stCmdInText = stCmdInText & objExecObject.StdOut.ReadLine() & vbCrlf
Text1.Text = stCmdInText
DoEvents
Loop
if this dont work try to concatenate VBNewLine
Code:
Do While Not objExecObject.StdOut.AtEndOfStream
stCmdInText = stCmdInText & objExecObject.StdOut.ReadLine() & vbNewLine
Text1.Text = stCmdInText
DoEvents
Loop
hope it helps!!
-
Oct 7th, 2022, 02:30 PM
#3
Thread Starter
Addicted Member
Re: Shell CMD Text output format
 Originally Posted by Auguro
Hello!
have you ever tried to concatenate "vbCrlf"?
Code:
Do While Not objExecObject.StdOut.AtEndOfStream
stCmdInText = stCmdInText & objExecObject.StdOut.ReadLine() & vbCrlf
Text1.Text = stCmdInText
DoEvents
Loop
if this dont work try to concatenate VBNewLine
Code:
Do While Not objExecObject.StdOut.AtEndOfStream
stCmdInText = stCmdInText & objExecObject.StdOut.ReadLine() & vbNewLine
Text1.Text = stCmdInText
DoEvents
Loop
hope it helps!!
OMG, Thanks a lot! It worked just fine... I'm such a failure, this is what you get after you are in VB6 for 15 years and didn't touched it for the past 1-2 years!
Last edited by beic; Oct 7th, 2022 at 02:31 PM.
Reason: typo
-
Oct 7th, 2022, 02:36 PM
#4
New Member
Re: [RESOLVED] Shell CMD Text output format
i'm glad it worked! Just try to not be so harsh with yourself!
have a nice day
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|