473,386 Members | 1,710 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,386 software developers and data experts.

problem with win32file.RemoveDirectory

me
Hello python world.

Since yesterday I'm using Python 2.4/PythonWin (build 203) on my Win98
system.
My problem - that did not occured in the previous version Python
2.3.4/PythonWin (build 163) - is the following:

The command i. e. 'win32file.RemoveDirectory("C:\\Python 2.4\\folder")'
causes the error message:

Traceback (most recent call last):
File "C:\Python24\remove.py", line 2, in ?
win32file.RemoveDirectory('C:\\Python24\\folder')
error: (120, 'RemoveDirectoryW', 'This function is only valid in Win32
mode.')

The new documentation tells me that RemoveDirectory "is implemented
using RemoveDirectoryW."
Does that mean a "NT/2000 Unicode specific version" and the
impossibility using this function on Win98?

Thanks for your help,
Johannes

Jul 18 '05 #1
1 2147
On Wed, 08 Dec 2004 14:39:57 +0100, rumours say that me
<fw*****@gmx.net> might have written:

[python2.4 + pythonwin 2.03 on Win98]
The command i. e. 'win32file.RemoveDirectory("C:\\Python 2.4\\folder")'
causes the error message:

Traceback (most recent call last):
File "C:\Python24\remove.py", line 2, in ?
win32file.RemoveDirectory('C:\\Python24\\folder')
error: (120, 'RemoveDirectoryW', 'This function is only valid in Win32
mode.')

The new documentation tells me that RemoveDirectory "is implemented
using RemoveDirectoryW."
Does that mean a "NT/2000 Unicode specific version" and the
impossibility using this function on Win98?


AFAIK yes. The .*W versions of functions were only stubs in the Win9x
family. You can see if there is a RemoveDirectoryA though; that would
be usable.
--
TZOTZIOY, I speak England very best,
"Tssss!" --Brad Pitt as Achilles in unprecedented Ancient Greek
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Lex | last post by:
Hi, below is the code I wrote (VB6) to delete a folder with it contents. It is basically recursive function which uses FindFirstFile, FindNextFile, FindClose and RemoveDirectory APIs. The...
0
by: jim | last post by:
Hi, All I am using python (activestate 2.2.2-224) on XP home and have suddenly got the following error from a file which worked fine under millenium. File...
0
by: chriss | last post by:
Hello everybody! I'm very bad in English but I'm going to try to explain my problem. I have a python program and this program is a service. chronologically: 1. I install my program like...
2
by: MaximusBrood | last post by:
Hi, Im a newcomer to Python and I've got some error that I totaly dont understand. I've made a program that is made to extract a couple of binhex files. Here is my sourccode: import...
0
by: Robert Brewer | last post by:
Still hacking pygarmin (eTrex GPS wrapper). Can anyone help explain the following snippet: def read(self, n): buffer = win32file.AllocateReadBuffer(n) rc, data = win32file.ReadFile(self.f,...
0
by: yamadora1999 | last post by:
'''######################################################################### GetQueuedCompletionStatus is return new OVERLAPPED instaed requested OVERLAPPED. And OVERLAPPED.object member is lost....
13
by: Bob Greschke | last post by:
We have some equipment that communicates at 57600 baud RS232. The path from the PC is USB to a Phillips USB hub, then off of that a TUSB3410 USB/Serial converter. The driver for the 3410 chip...
4
by: jim-on-linux | last post by:
Where can I download win32file / win32ui? The links below are broken. Mark Hammond should be made aware of this. URL below has two links that send you no place...
3
by: Ron Jackson | last post by:
I am using Python 2.5 on Windows XP. I have installed Pyserial and win32all extensions. When I try to run the example program scan.py (included below), or any other program using pyserial, as...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.