You are not logged in.

#1 23 Dec 2012 05:57

Ed Dyreen
Member
From: Flanders_( Belgium )
Registered: 29 Feb 2008
Posts: 18
Website

redirect stdOut to null device

I curently use this code, oStdOut is a class instance with a private flag that if set, enables the write method which uses Wscript.Stdout.Write

oStdOut.disable()
file = file_( fullPathFile )
oStdOut.enable()
If file <> "" Then
   'do something
End If

Was wondering if it would be possible in a way that would allow to use it with If ... Then ... Else ...

If ( file_( fullPathFile ) >nul ) <> "" Then
   'do something
End If

It could be done using an extra argument but hope it is not necessary...

Thanks

Last edited by Ed Dyreen (25 Dec 2012 00:44)

Offline

Board footer

Powered by