how to list files with extension .txt in windows?

E

ed

hi I ahve a simple question and is new to python.
I have a folder in windows that contains some .txt files.
the fucntion that i want to do is whenever there is new directory
created (say 249, thos enew directorys are always in numbers in 3
digit), i want to grap that 249 and the previous created one (say
230), then call a .btm script TWICE which accepts these two numbers as
parameters. so the script I called will be under 4NT and synatax under
4NT are:
script 230 249
script 230 249 A

How can i do that in python.

Those two folders sits on network drive and I have mapped that to G:\
drive.
platform I am on is windows 2000 or XP pro.

I have used batch script to do it but it has a lot of issues with
access denied... errors I pretty much given up using batch to do this.

Thanks
 
A

Aaron Bingham

ed said:
I have used batch script to do it but it has a lot of issues with
access denied... errors I pretty much given up using batch to do this.
If you do not have permission to access the files, switching to a
different language will not help you. You need to determine the cause
of your access errors first.

Aaron
 
E

ed

I do have permission toa ccess the file as that file is careted and read my me.
I have read/write access to that location. regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,212
Messages
2,571,102
Members
47,697
Latest member
looped_monk

Latest Threads

Top