Restored from previous forum. Originally posted by willinyork.
i have a line in a prog like this:
RunProgram("c:\vag2vb.exe",Chr(32)+f$+Chr(32)+destinationfilename$,1)
if the vag2vb.exe is run from dos (not purebasic) I can add " > c:\vbout.txt" and the text vag2vb displays when run is then written to a file called vbout.txt in c:\
if I change my line in myprogram to:
RunProgram("c:\vag2vb.exe",Chr(32)+f$+Chr(32)+destinationfilename$+Chr(32)+" > c:\vbout.txt",1)
it doesn't work. is the " > c:\vbout.txt" thing that works in dos not compatible with purebasic? is there a way to take the text output from the vag2vb program and write it to either a text file or a string?
thanks!
is the ">" thing from dos compatible?
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
> is there a way to take the text output from the vag2vb program and write it
> to either a text file or a string?
Yep! Rings way is fine but uses too much source code for my liking.
Try my method at this URL and adapt it to your own needs: http://tinyurl.com/lxi
PB - Registered PureBasic Coder
> is there a way to take the text output from the vag2vb program and write it
> to either a text file or a string?
Yep! Rings way is fine but uses too much source code for my liking.
Try my method at this URL and adapt it to your own needs: http://tinyurl.com/lxi
PB - Registered PureBasic Coder
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by El_Choni.
I suggest you to take a look at the Execute() function of the CGI library, available at Pauls' site:
http://www.reelmediaproductions.com/pb
E-mail any comments to the moron who wrote it XD. Bye,
El_Choni
I suggest you to take a look at the Execute() function of the CGI library, available at Pauls' site:
http://www.reelmediaproductions.com/pb
E-mail any comments to the moron who wrote it XD. Bye,
El_Choni
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm