Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

justinchenjy@...

Dear Support,


i solve it, i need copy the xml to onther folder before session close.


BR


Justin
justinchenjy@...

Hi Support,

i try change code like below:

$sessionLogPath="C:\SinoPorject\Log\session.log"
$session.SessionLogPath = $sessionLogPath
$XMLLogPath="C:\SinoPorject\Log\session.xml"
$session.xmlLogPath = $XMLLogPath
$session.Open($sessionOptions)

it still have log type file without xml type file.


br

justin
justinchenjy@...

How to use XML log with Powershell

Hi support,

my OS: WIN2008
POWERTSHELL VERSION: V1.0
WINSCP VERSION: 5.92

i using below code is ok.
$sessionLogPath="C:\SinoPorject\Log\session.log"
$session.SessionLogPath = $sessionLogPath
$session.Open($sessionOptions)

i can got Log file.

but i use below code,

$sessionLogPath="C:\SinoPorject\Log\session.xml"
$session.SessionLogPath = $sessionLogPath
$session.Open($sessionOptions)

there are no xml file in the folder..
hoe to using XML log in powershell?

BR

Justin