problem with win32file.RemoveDirectory

M

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
 
C

Christos TZOTZIOY Georgiou

[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.
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top