create Log result.

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
2lunk
Posts: 1
Joined: 20 Jan 2014 00:09

create Log result.

#1 Post by 2lunk » 20 Jan 2014 00:16

hi all,

seek your assistance. I have no idea to create log result for my batch file (status of job whether successful or not)


below the sample of my batch files.
@ECHO ON

REM SET MM=%DATE:~4,2%
REM SET DD=%DATE:~7,2%
REM SET YYYY=%DATE:~10,4%

pscp -scp -p 24 -2 -i C:\<folder>\*.ppk C:\<folder>\*.* @ip address>:./

:END



Please advice.

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: create Log result.

#2 Post by foxidrive » 20 Jan 2014 07:31

Does pscp return an errorlevel which shows the status?

Post Reply