Code Point
September 08, 2010, 08:24:03 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Geshi Sintax Hilighting Mod Installed. Tens of languages available.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: making directory  (Read 2910 times)
bojak71730
Jr. Member
*

Karma: 0
Offline Offline

Posts: 10


« on: February 06, 2007, 10:50:30 PM »

i made a file in c drive called my_progams i went back tested some of the scripts worked great then today i go and type cd /my_programs just like it told me yesterday to do and now it doesnt work it gives me a long error ... traceback <most recent call list:
file "<stdin>"; line 1, in <module>
NameError: name cd' is not defined
Logged
Alter Lobo
Global Moderator
Jr. Member
*****

Karma: 10
Offline Offline

Posts: 65


« Reply #1 on: February 06, 2007, 11:24:01 PM »

'cd' is a shell command not a python command, so it should be typed at the shell prompt not at the python interactive interpreter prompt.

Also the slash '/' is to be used with Linux. If you are using Windows use the backslash '\'.
Logged
bojak71730
Jr. Member
*

Karma: 0
Offline Offline

Posts: 10


« Reply #2 on: February 06, 2007, 11:28:17 PM »

well i did that and it gave me same error which i dont understand i used python (command line) like they said
Logged
bojak71730
Jr. Member
*

Karma: 0
Offline Offline

Posts: 10


« Reply #3 on: February 06, 2007, 11:40:30 PM »

nvm i figured it out the thing i wasnt doing was i was not going to run and typing cmd.exe i was using the interpertor for it
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!