Is it possible to send a list of related commands using os.system() in python? I mean if I want to change current directory to a specific directory and then have a list of contents, how can I do it? (I don't want to use dir "path"- I want to do both changing current dir, and listing the directories)
Note : It was just an example, I want to know how I can send multiple commands! (Some related commands in a row)
Note : Python 3.2
&for the same purpose. This command will list the contents of your home directory and pause until you press Enter.os.system(r'cd %USERPROFILE% & dir & pause >nul')