intruder1980
26th March 2009 13:46 UTC
Exec command > text-file Problem
Hey,
I am trying to store a list of local users in a text-file by using:
Exec '"net.exe" user > test.txt'
But this seems not to be working. In CMD it works fine.
Is there something wrong with my line or is Exec not able to do ">"?
Thanks in advance Geeks ;)
NSIS 2.43
Anders
26th March 2009 14:17 UTC
you can not use redirection with Exec*, you need to use one of the exec plugins (nsExec or http://nsis.sourceforge.net/Category:Plugins). Its probably better to call the actual windows API with the system plugin, but it is more work:
http://forums.winamp.com/showthread....979&highlight=
http://forums.winamp.com/showthread....821&highlight=
http://nsis.sourceforge.net/User_Man...sing_API_calls