show directory/createprocess

hey, what is the code to show the contents of a file:
C:\FOS

also, what would be the line to run another exe in the same window like
CreateProcess
please give me the correct useage of createprocess for the directory
c:\FOS\CoreServices\commandrun.exe
What do you mean by 'show'?

You can use FindFirstFile to get the content of a directory:
https://msdn.microsoft.com/en-us/library/windows/desktop/aa364418%28v=vs.85%29.aspx


For CreateProcess see the example on MSDN:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms682512%28v=vs.85%29.aspx
Topic archived. No new replies allowed.