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

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -