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

Re: Renaming of files in OS directory

2010-08-08 Thread Chris Rebert
On Sun, Aug 8, 2010 at 1:02 AM, blur959 blur...@hotmail.com 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

Re: Renaming of files in OS directory

2010-08-08 Thread blur959
On Aug 8, 4:15 pm, Chris Rebert c...@rebertia.com wrote: On Sun, Aug 8, 2010 at 1:02 AM, blur959 blur...@hotmail.com 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.

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 c...@rebertia.com wrote: On Sun, Aug 8, 2010 at 1:02 AM, blur959 blur...@hotmail.com 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

Re: Renaming of files in OS directory

2010-08-08 Thread blur959
On Aug 8, 6:05 pm, Thomas Jollans tho...@jollans.com wrote: On 08/08/2010 10:35 AM, blur959 wrote: On Aug 8, 4:15 pm, Chris Rebert c...@rebertia.com wrote: On Sun, Aug 8, 2010 at 1:02 AM, blur959 blur...@hotmail.com wrote: Hi, all, I am writing a program that renames files inside OS

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 tho...@jollans.com wrote: On 08/08/2010 10:35 AM, blur959 wrote: On Aug 8, 4:15 pm, Chris Rebert c...@rebertia.com wrote: On Sun, Aug 8, 2010 at 1:02 AM, blur959 blur...@hotmail.com wrote: Hi, all, I am writing a

Re: Renaming of files in OS directory

2010-08-08 Thread blur959
On Aug 8, 7:45 pm, Thomas Jollans tho...@jollans.com wrote: On 08/08/2010 12:23 PM, blur959 wrote: On Aug 8, 6:05 pm, Thomas Jollans tho...@jollans.com wrote: On 08/08/2010 10:35 AM, blur959 wrote: On Aug 8, 4:15 pm, Chris Rebert c...@rebertia.com wrote: On Sun, Aug 8, 2010 at 1:02

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. I typed

Re: Renaming of files in OS directory

2010-08-08 Thread blur959
On Aug 8, 9:13 pm, Thomas Jollans tho...@jollans.com 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:\\' .