J
J. Hwang
Hello,
I have a client which like me to convert their existing patch to c#
console application.
I know that it should be really simple, but I'm a newbee to C#.
I also knowing how to create a subfolder with the datestamp as the
code below,
but I don't know how to do the rest.
Please help me to convert these Patch code to c# console application.
@echo off
set dd=%date:~7,2%
set mm=%date:~4,2%
set yyyy=%date:~10,4%
set folder=%yyyy%-%mm%-%dd%
set hh=%time:~0,2%
set mm=%time:~3,2%
set ss=%time:~6,2%
set file=%hh%-%mm%-%ss%
if exist "C:\MemSnap\Logs\%folder%" (
"C:\Program Files\Support Tools\memsnap" -m "C:\MemSnap\Logs\%folder%
\MemSnap%file%.log"
) else (
mkdir "C:\MemSnap\Logs\%folder%"
"C:\Program Files\Support Tools\memsnap" -m "C:\MemSnap\Logs\%folder%
\MemSnap%file%.log"
)
Thank you very much in advance!
I have a client which like me to convert their existing patch to c#
console application.
I know that it should be really simple, but I'm a newbee to C#.
I also knowing how to create a subfolder with the datestamp as the
code below,
but I don't know how to do the rest.
Please help me to convert these Patch code to c# console application.
@echo off
set dd=%date:~7,2%
set mm=%date:~4,2%
set yyyy=%date:~10,4%
set folder=%yyyy%-%mm%-%dd%
set hh=%time:~0,2%
set mm=%time:~3,2%
set ss=%time:~6,2%
set file=%hh%-%mm%-%ss%
if exist "C:\MemSnap\Logs\%folder%" (
"C:\Program Files\Support Tools\memsnap" -m "C:\MemSnap\Logs\%folder%
\MemSnap%file%.log"
) else (
mkdir "C:\MemSnap\Logs\%folder%"
"C:\Program Files\Support Tools\memsnap" -m "C:\MemSnap\Logs\%folder%
\MemSnap%file%.log"
)
Thank you very much in advance!