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

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

node.js - Express and Redis - If session exists for this user, don't allow access -