Re: Renaming of files in OS directory

2010-08-08 Thread blur959
On Aug 8, 9:13 pm, Thomas Jollans wrote: > On 08/08/2010 02:35 PM, blur959 wrote: > > > Sorry, This is my first time using the os commands in python, Ok, > > firstly, I entered "C:\" inside raw_input and stored it inside > > fileroot. When i print repr(fileroot), my result was '"C:\\"' . And > > w

Re: Renaming of files in OS directory

2010-08-08 Thread Thomas Jollans
On 08/08/2010 02:35 PM, blur959 wrote: > Sorry, This is my first time using the os commands in python, Ok, > firstly, I entered "C:\" inside raw_input and stored it inside > fileroot. When i print repr(fileroot), my result was '"C:\\"' . And > when I run os.listdir with fileroot, I got that error.

Re: Renaming of files in OS directory

2010-08-08 Thread blur959
On Aug 8, 7:45 pm, Thomas Jollans wrote: > On 08/08/2010 12:23 PM, blur959 wrote: > > > > > On Aug 8, 6:05 pm, Thomas Jollans wrote: > >> On 08/08/2010 10:35 AM, blur959 wrote: > > >>> On Aug 8, 4:15 pm, Chris Rebert wrote: > On Sun, Aug 8, 2010 at 1:02 AM, blur959 wrote: > > Hi, all,

Re: Renaming of files in OS directory

2010-08-08 Thread Thomas Jollans
On 08/08/2010 12:23 PM, blur959 wrote: > On Aug 8, 6:05 pm, Thomas Jollans wrote: >> On 08/08/2010 10:35 AM, blur959 wrote: >> >> >> >>> On Aug 8, 4:15 pm, Chris Rebert wrote: On Sun, Aug 8, 2010 at 1:02 AM, blur959 wrote: > Hi, all, I am writing a program that renames files inside OS >

Re: Renaming of files in OS directory

2010-08-08 Thread blur959
On Aug 8, 6:05 pm, Thomas Jollans wrote: > On 08/08/2010 10:35 AM, blur959 wrote: > > > > > On Aug 8, 4:15 pm, Chris Rebert wrote: > >> On Sun, Aug 8, 2010 at 1:02 AM, blur959 wrote: > >>> Hi, all, I am writing a program that renames files inside OS > >>> directories the user provides. I am at t

Re: Renaming of files in OS directory

2010-08-08 Thread Thomas Jollans
On 08/08/2010 10:35 AM, blur959 wrote: > On Aug 8, 4:15 pm, Chris Rebert wrote: >> On Sun, Aug 8, 2010 at 1:02 AM, blur959 wrote: >>> Hi, all, I am writing a program that renames files inside OS >>> directories the user provides. I am at the early stage of writing it >>> and I encountered some pr

Re: Renaming of files in OS directory

2010-08-08 Thread blur959
On Aug 8, 4:15 pm, Chris Rebert wrote: > On Sun, Aug 8, 2010 at 1:02 AM, blur959 wrote: > > Hi, all, I am writing a program that renames files inside OS > > directories the user provides. I am at the early stage of writing it > > and I encountered some problems. > > > Below is my code. There is a

Re: Renaming of files in OS directory

2010-08-08 Thread Chris Rebert
On Sun, Aug 8, 2010 at 1:02 AM, blur959 wrote: > Hi, all, I am writing a program that renames files inside OS > directories the user provides. I am at the early stage of writing it > and I encountered some problems. > > Below is my code. There is an error i received when i run this code. > The err

Renaming of files in OS directory

2010-08-08 Thread blur959
Hi, all, I am writing a program that renames files inside OS directories the user provides. I am at the early stage of writing it and I encountered some problems. Below is my code. There is an error i received when i run this code. The error is, WindowsError: [Error 123] The filename, directory na