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 ..
[RESOLVED] CopyFile / DeleteFile Windows 7 Service Pack 1
[RESOLVED] CopyFile / DeleteFile Windows 7 Service Pack 1
Last edited by Alexa on Thu Mar 24, 2011 2:25 pm, edited 1 time in total.
-
- Enthusiast
- Posts: 112
- Joined: Wed May 13, 2009 8:38 am
- Location: Arizona, USA
Re: [REQ] CopyFile / DeleteFile Windows 7 Service Pack 1
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
Thank you very much for your hint .. That was exactly because of the compiler version