How to save a list to a text file in another line

(imported topic written by bearandy91)

I just want to save a list like “names of processs” to a text file:

parameter “testprocess” = “C:\testprocess.txt”

createfile until end

{concatenation " ; " of names of processes}

end

delete “{parameter “testprocess”}”

copy __createfile "{parameter “testprocess”}

but the result:

smss.exe ; csrss.exe ; wininit.exe ; csrss.exe ; services.exe ; winlogon.exe ; lsass.exe ; lsm.exe ; svchost.exe ; ibmpmsvc.exe ; nvvsvc.exe ; svchost.exe ; svchost.exe ; svchost.exe ; svchost.exe ; svchost.exe ; WUDFHost.exe ; svchost.exe ; …etc

I want save it like this:

SCHTASK.EXE

rundll32.exe

wmpnetwk.exe

daemonu.exe

chrome.exe

SUService.exe

svchost.exe

wlcomm.exe

chrome.exe

taskeng.exe

rundll32.exe

chrome.exe

…etc

Thanks for help

(imported comment written by NoahSalzman)

You need to concatenate a line ending:

http://forum.bigfix.com/viewtopic.php?pid=34676#p34676

(imported comment written by BenKus)

Try this:

{concatenation “%0d%0a” of names of processes}

Ben

(imported comment written by bearandy91)

THANKS Noah & Ben!! It’s work!