How to call other utilties from fiddler?

36 views
Skip to first unread message

Barlow

unread,
Jun 13, 2009, 9:39:17 AM6/13/09
to Fiddler
Hi, Eric.

I found there is a method of RunExcutableAndWait( sExecute, sParams ).
Is it used for call other programs which is not belong to fiddler?

How could it be used?

EricLaw

unread,
Jun 15, 2009, 6:33:49 PM6/15/09
to Fiddler
Yes, this function does exactly what it says: it executes the target
program with the specified parameters, and halts execution until the
target program exits.

It's similar to what Process.Start() does, although it has an
exception handler, etc.

Barlow

unread,
Jun 30, 2009, 9:45:55 AM6/30/09
to Fiddler
Eric,how to call DOS utilities, ex. RAR.EXE.

I called it as this way :

Utilities.RunExecutableAndWait( sPath + 'rar.exe ','m -sfx -m4 -
agyyyymmdd created ' + sFileName );

It disappeared after a black flash without any results.
> > How could it be used?- 隐藏被引用文字 -
>
> - 显示引用的文字 -

EricLaw

unread,
Jun 30, 2009, 9:59:11 AM6/30/09
to Fiddler
Presumably, your command line program executed, finished, and then the
console closed. If you want its console window to stick around, then
you'd want to do something like:

Utilities.RunExecutableAndWait('cmd', '/k ' + sPath +
'rar.exe m -sfx -m4 -agyyyymmdd created ' + sFileName );

-Eric
> > - 显示引用的文字 -- Hide quoted text -
>
> - Show quoted text -

Barlow

unread,
Jul 1, 2009, 8:13:48 AM7/1/09
to Fiddler
Eric, both trimming and call dos utilities works, thx again.
> > - Show quoted text -- 隐藏被引用文字 -
>
> - 显示引用的文字 -
Reply all
Reply to author
Forward
0 new messages