473,388 Members | 919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Problem with windows NT directories

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
1 970
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

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

Similar topics

0
by: Chann Becker | last post by:
My current setup: WWW Server: Windows 2000 Server, SP4 IIS5 PHP 4.3.4 File Server Windows 2000 Server, SP4
2
by: flamesrock | last post by:
Hi, Short, maybe newbish question: Is there a python method for finding out who the current user is in the OS module? On older windows machines the directory I'm interested in is just "c://my...
2
by: epaetz | last post by:
I'm getting Not associated with a trusted SQL Server connection errors on a .Net windows service I wrote, when it's running on my application server. It's not a problem with mixed mode...
3
by: W Akthar | last post by:
Hi I am trying to create a windows service which queries SQL Server on timed intervals and depending on the results send appointments to Outlook. The problem lies when I try to create an...
3
by: leo_junquera | last post by:
I am trying to use windows authentication on an intranet to call a web service. When I make my first call to the service after connecting from a client app using: ws.Url = ServiceUrl;...
1
by: hlam | last post by:
After deploying the application and running it on an XP p.c. I get the message from Crystal Reports Viewer Window: Load Report Failed Here is what I've used: . Connecting to Sql Server 2000...
4
by: Stimp | last post by:
When a user registers with my site, I create a separate folder for them (for uploading photos, etc). The code for this has been working fine for 1 year, but over the past 2 weeks it has been...
1
by: uuyytt | last post by:
I have a Windows service from which I want to start Internet Explorer with a particular URL as an argument. It can work well except when I run it on windows 2003 I allowed services explicitly to...
1
by: souravmallik | last post by:
Hello, I'm writing a parser program in C language. I need to search all the source file for the parser to parse from a set of directories. The directory structure have two branch i.e. there...
1
by: samdediacre | last post by:
Hi all, I have developped a very simple Windows service that references a managed .NET dll. the code within the dll contains a static class to read/write data from registry. So the OnStart()...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.