Page 1 of 1

[RESOLVED] CopyFile / DeleteFile Windows 7 Service Pack 1

Posted: Tue Mar 22, 2011 5:06 pm
by Alexa
Hi

I need to copy some files in Windows Directory \ System32

but after installing the Windows 7 Service Pack 1 , I'm unable to do that .. Windows Security System doesn't allow the purebasic executable file to Copy or Delete file form System32 Directory
it was okay before but it doesn't work with SP1 ( at least it doesn't work for me )

my program loads as Administrator and it should work but it doesn't ..

the project works with Windows 7 / Vista / XP .. but it doesn't work with Windows 7 Service Pack 1 , i can Copy / Del files with Batch file in System32 Directory ( if I execute them as Administrator ) but it doesn't work with PureBasic

is there any Cheat for this ? please advise ..

Re: [REQ] CopyFile / DeleteFile Windows 7 Service Pack 1

Posted: Wed Mar 23, 2011 7:07 pm
by GoodNPlenty
Are you running Windows 7 x64 [64 bit] Windows using the PureBasic 32bit compiler? If so this is a File System Redirector issue which is a Windows feature (http://msdn.microsoft.com/en-us/library ... S.85).aspx) and not a PureBasic bug. I have tested Windows 7 x64 SP1 using 'Wow64RevertWow64FsRedirection' and Windows 7 x86 with PureBasic 4.51 and have had no issues with your request. NOTE: I do NOT recommend messing with the system folders as this can create serious issues. If you are running 64bit Windows 7 with PureBasic 32 bit compiler I have previously posted sample code that will show you how to proceed (http://www.purebasic.fr/english/viewtop ... 13&t=45314). Caveat emptor

Re: [REQ] CopyFile / DeleteFile Windows 7 Service Pack 1

Posted: Thu Mar 24, 2011 2:21 pm
by Alexa
Thank you very much for your hint .. That was exactly because of the compiler version