1. What windows version do you use.
WinXP SP2
2. What will happen if you use SETCURRENTDIRECTORY( "C:.\" )
instead of SETCURRENTDIRECTORY( "C:" )
============================================
PROC main()
TEST()
RETURN
#pragma BEGINDUMP
#include "windows.h"
HB_FUNC( TEST )
{
char szPath[ MAX_PATH ];
printf( "%d\n", GetCurrentDirectory( MAX_PATH, szPath ) );
printf( "%s\n", szPath );
printf( "%d\n", SetCurrentDirectory( "D:\\PRG\\POSAS" ) );
printf( "%d\n", GetCurrentDirectory( MAX_PATH, szPath ) );
printf( "%s\n", szPath );
printf( "%d\n", SetCurrentDirectory( "C:.\\" ) );
printf( "%d\n", GetCurrentDirectory( MAX_PATH, szPath ) );
printf( "%s\n", szPath );
}
#pragma enddump
============================================
C:\cawi32\sample\test>test148
21
C:\cawi32\sample\test
1
12
D:\PRG\POSAS
1
21
C:\cawi32\sample\test
============================================
So, "C:.\" result is the same as "C:\".
(!) I've noticed an error in my previous test147 sample. It should be:
"D:\\PRG" in C code, but not "D:\PRG".
Results for both C strings "D:\PRG" and "D:\\PRG" (actually memory
strings are "D:PRG" and "D:\PRG") are the same, i.e. D:\PRG directory is
selected.
Regards,
Mindaugas
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour