How do i access or call system commands (can't really think of a better thing to call em???)
for example on explorer you can right click on an object and select eject, or format ect ect (mainly eject is what i want to know about)
any help would be greatly appreciated
thanks,
a1eio
a1eio
16
Junior Poster
Recommended Answers
Jump to PostHi!
import os os.system("the_system_command")
Regards, mawe
Jump to PostIf you know Windows/DOS batch language you can create and save batch file from within Python program, than run it with os.system("mybatfile.bat")
All 5 Replies
mawe
6
Junior Poster
shanenin
0
Posting Whiz in Training
bumsfeld
413
Nearly a Posting Virtuoso
a1eio
16
Junior Poster
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.