Here is an example executing a DOS command : Os : Buildin Module PYTHON TUTORIALS
Ajax
Ajax Examples
Ajax Tutorials
Scripts and Programs
Javascript
Javascript Examples Tutorials
DHTML Tutorials
Javascript References
Scripts and Programs
HTML
HTML Tutorials
HTML References
HTML DOM 0 References
HTML DOM 2 References
CSS
CSS Tutorials
CSS References
PHP
PHP Source Code
PHP References
Scripts and Programs
C#
C# Source Code
C# Examples
PYTHON TUTORIALS
»
Buildin Module
»
Os
»
Here is an example executing a DOS command
import
os
result = os.system
(
'di
r'
)
Related Scripts with Example Source Code in same category :
Starting a Web browser.
Windows-specific function os.startfile
Using the os.execvp(path, args) to execute the application update.exe with a command-line parameter of -verbose
list directories
Execute system command with os.system()
os.popen() a pipe
Operating System Interface
Process Management
Run application from host
Run shell command
fork a thread
Uses the system function to clear the screen.
Opens a Web page in a system-specific editor
Demonstrating popen and popen2.
Leave a Comment / Note
Name (required)
email (will not be published) (required)
Website
Vérification
Refresh
Enter code
Verification is used to prevent unwanted posts (spam). .
PYTHON TUTORIALS
Buildin Module
»
Os
Command line
Signal
Copy
Stat
Datetime
Struct
Environment
Subprocess
Fileinput
Sys
Heapq
Syslog
Inter2
Time
Math
Unit test
Os
Webbrowser
Platform
Win32api
Random
Buildin Function
Buildin Module
CGI Web
Class
Collections
Data Type
Database
Dictionary
File
Function
Introduction
List
Network
Operator
Regular Expressions
Statement
String
Thread
Tkinker
Tuple
Windows
WxPython
XML