Re: [Audacity-nyquist] mp3's and commandline nyquist
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: edgar <edg...@we...> - 2011-07-16 20:46:53
|
Am Sat, 16 Jul 2011 11:02:07 -0400 schrieb Roger Dannenberg <rb...@cs...>: > Thanks, edgar. I think maybe SYSTEM was not implemented in the > Windows port because there was no simple way to do it at the time. I > see there is a CreateProcess() for Win2K and above, and it appears > that would be a very simple way to implement SYSTEM, so I'll try to > do that before long. If anyone could use this feature right away, let > me know. -Roger Don't know how much it helps (I'm a horribly bad C programmer and have no Windows system at hand to test it), but here is the Windows SYSTEM version from Tom Almy's XLISP PLUS: /* xsystem - execute a system command */ LVAL xsystem() { int ok; if (moreargs()) { MEMCPY(buf, getstring(xlgastring()), STRMAX); xllastarg(); } else { strcpy(buf, "dosprmpt.pif"); } ok = WinExec(buf, SW_SHOWNORMAL); return (ok > 32 ? s_true : cvfixnum((FIXTYPE)errno)); } The full sourcecode can be downloaded from: http://almy.us/files/xl305src.zip The SYSTEM function is defined in "win32stu.c". - edgar |