PROCESS_INFORMATION pi = new PROCESS_INFORMATION(); STARTUPINFO si = new STARTUPINFO(); si.cb = Marshal.SizeOf(si); StringBuilder sb = new StringBuilder(@"C:\WINDOWS\notepad.exe c:\1.txt"); if (CreateProcess(null,sb, IntPtr.Zero, IntPtr.Zero, false,
window 7 下面是使用 clip.exe,通过shell调用。 xp 没有这个东西,复制window 7 系统里面的clip.exe 也不能用。 这个是老外写的第三方程序,使用方法一样。 which would do your command as dir | clip - but there's nothing on XP. If you're willing to use 3rd party applications, though, there's this, which work
PB 11.5做的当前用户权限下所有正在运行程序,主要代码: Function Long EnumProcesses(Ref ULong lpidProcess[], Long cb, Ref Long cbNeeded) Library 'psapi.dll ' Function Long OpenProcess(Long dwDesiredAccess, Int bInheritHandle, Long dwProcessId) Libr ary 'kernel32.dll ' Funct