By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,172 Members | 762 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,172 IT Pros & Developers. It's quick & easy.

Problem with windows NT directories

P: 2
Hi, I've got a problem, when im examin windows NT directories.
I've written a program that checks if certain directories exist. Im using "os.popen('dir \/B "\\\\' + computer name + \c$\\program files\argument"').readlines()!=[]" to check if the directory is empty or not. It works fine on windows XP machines and 2003 servers, but i fails on NT maschines, saying that the directory exists eventhough it doesnt.....
Any suggestions what im doing wrong??
Jul 30 '07 #1
Share this Question
Share on Google+
1 Reply


P: 2
Hi, I've got a problem, when im examin windows NT directories.
I've written a program that checks if certain directories exist. Im using "os.popen('dir \/B "\\\\' + computer name + \c$\\program files\argument"').readlines()!=[]" to check if the directory is empty or not. It works fine on windows XP machines and 2003 servers, but i fails on NT maschines, saying that the directory exists eventhough it doesnt.....
Any suggestions what im doing wrong??
Nevermind, I've solved the problem.
Aug 1 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.