pipe
asked on
How to call system commands
hello/
how do i call system commands such as 'dir', 'cd' etc
thanks / p
how do i call system commands such as 'dir', 'cd' etc
thanks / p
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What are you trying to accomplish? Are you trying to modify files, or display files on the screen?
Have a look at this. it is very straightforward.
https://www.experts-exchange.com/questions/20588906/Shell-Command.html?query=shell&topics=323
https://www.experts-exchange.com/questions/20588906/Shell-Command.html?query=shell&topics=323
gregasm isnt
Process.Start("cmd.exe", "/C dir")
and
Shell("cmd.exe","/C dir")
nearly the same thing ? :)
Process.Start("cmd.exe", "/C dir")
and
Shell("cmd.exe","/C dir")
nearly the same thing ? :)
in fact shell calls Process.Start :P
shell("explorer.exe ""c:\my music\""")
something like that. right on.
something like that. right on.
ASKER
ill look into this tonight. i am making my own command prompt and i was just gonna issue the commands (like suggested above) and return the results to my custom command prompt.
well I suggest using the system.io.directoryinfo and system.io.fileinfo to get info and do some basic tasks. This way you have more control on what to show on the screen.