csv - Why when I redirect output to an existing file the system will make a new file? -
i have .bat file finds user login details below code:
echo %computername%, %userdomain%, %username%, %date%, %time%
i have file log.csv
store information. log file available inside c:\drive\tmp
.
when redirect output this:
echo %computername%, %userdomain%, %username%, %date%, %time% >> c:\drive\tmp\log.csv
the script not store output in existing file log.csv, instead make new log.csv duplicate name.
why happen? can fix that?
Comments
Post a Comment