Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ms-dos

Status
Not open for further replies.

3li773

Programmer
Jan 23, 2003
20
CA
hey i was just wondering how good you make a directory using python i have done the

import os
os.system("md my_dir")

but consider the following

dirname=raw_input(">")
import os
os.system("md ______")

how could i put the dirname variable in the black after md
 
try this instead of using os.system

>>> import os
>>> os.mkdir(dirname)
>>>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top