Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-08-2019, 15:32
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,761
Thanks: 2,192
Thanked 11,250 Times in 2,319 Posts
Razor12911 is on a distinguished road
Quote:
Originally Posted by elit View Post
Those " '|' (xtool) '|' " characters are pipes, that's how you pass data between programs and its is well known standard. Normally, you wouldn't never use '-'-' additionally in such case but I will try something like "cmd | xtool - - | cmd" later and let you know. Again v0.12 and ztool work fine like this.
Dude, I know that "|" is for pipe, but - - is for stdio in terms of xtool

The usage for xtool goes like this

xtool command input output
"-" denotes stdin/stdout depending where you put it.

This is how I have written it

Code:
  
if ParamArg[2] = '-' then
    Output := THandleStream.Create(GetStdHandle(STD_OUTPUT_HANDLE))
  else
    Output := TFileStream.Create(ParamArg[2], fmCreate);
Quote:
Originally Posted by elit View Post
Ok I can confirm that if I use "cmd | xtool precomp:zlib - - | cmd" then it work. Although '- -' should normally not be necessary in this type of syntax, at least it works. Thank you for a great tool.
The reason I have added it as "-"

is because what if you can accept input as stdin then the next program requires an existing file
it then becomes something like this

xtool command - output

or if input is a file and output is required as stdout
it becomes
xtool command input -

if pipes are involved it means stdin and stdout takes place which is why it is
xtool command - -

Last edited by Razor12911; 08-08-2019 at 15:35.
Reply With Quote
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Information about ZTool 78372 Conversion Tutorials 72 10-10-2019 06:27
ztool info doofoo24 Conversion Tutorials 2 24-12-2017 22:08
ZTool (Ultimate Precompressor) Razor12911 Conversion Tutorials 16 20-07-2017 07:56



All times are GMT -7. The time now is 11:29.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com