Click here to Skip to main content
15,397,385 members
Home / Discussions / Windows Development
   

Windows Development

 
AnswerRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
Richard Deeming30-May-17 4:35
mveRichard Deeming30-May-17 4:35 
GeneralRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
Member 798912230-May-17 7:01
MemberMember 798912230-May-17 7:01 
GeneralRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
Richard Deeming30-May-17 8:51
mveRichard Deeming30-May-17 8:51 
GeneralRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
Member 798912230-May-17 22:50
MemberMember 798912230-May-17 22:50 
AnswerRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
Richard MacCutchan30-May-17 4:37
mveRichard MacCutchan30-May-17 4:37 
GeneralRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
Member 798912230-May-17 5:49
MemberMember 798912230-May-17 5:49 
GeneralRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
Richard MacCutchan30-May-17 5:54
mveRichard MacCutchan30-May-17 5:54 
GeneralRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
Member 798912230-May-17 7:26
MemberMember 798912230-May-17 7:26 
Nobody says it's the user's fault. The user specifies a file name, my utility writes to the file named by the user, and successfully reads it back, under the name given by the user. Everything is OK so far. Then the user tries to read it (i.e. execute the script) using the file name he gave to the utility, and which worked fine within the utility. But then the file isn't there!

Even if the user specifies the fully rooted name, both when giving it to the utility, and when trying to execute the generated script, the file isn't there. But it was when the utility wrote it (and later read it back), under that very same name.

Whose fault is that? The user's fault? The utility's fault? They both use the same name, even fully rooted, but the file nevertheless "disappears".

This has nothing to do with where the utility is installed (that's in a completely different directory). The situation described solely depends on a data file written to C:\Windows\System32\. If the writing is done by a dotNet program, or any other 32 bit program, the data file is written to C:\Windows\SysWOW64, and is not seen in C:\Windows\System32\ by neither Explorer, cmd.exe nor any other 64 bit program, but appears to have disappeared. (Unless you fully understand what is going on - but even seasoned system programmers may be weak in that respect.)

If the user makes a "CD \" before running the utility, everything works fine. Or if he specifies a file name that is NOT in C:\Windows\System32. This is not easy to make users see as reasonable or "right". Plain users really shoudn't be messing around in C:\Windows\System32\ at all - but in an out-of-the box Windows installation, that is exactly where the user is sent when he opens a command window. That is really the one to blame! If the default working directory for cmd.exe had been C:\ rather than C:\Widows\System32, there wouldn't have been a problem.

Well, obviously: If some system guy really has work to do in \Windows\System32, the problem would still be the same for that guy. But if he has a reason to fiddle with System32, then he is most likely competent to understand why the system behaves that way. The ordinary user is not.
GeneralRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
RedDk30-May-17 7:42
MemberRedDk30-May-17 7:42 
GeneralRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
Richard MacCutchan30-May-17 8:44
mveRichard MacCutchan30-May-17 8:44 
GeneralRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
Member 798912230-May-17 22:42
MemberMember 798912230-May-17 22:42 
GeneralRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
Richard MacCutchan30-May-17 22:52
mveRichard MacCutchan30-May-17 22:52 
AnswerRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
Terry Perez8-Sep-17 4:00
MemberTerry Perez8-Sep-17 4:00 
GeneralRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
OriginalGriff14-Sep-17 21:56
mveOriginalGriff14-Sep-17 21:56 
QuestionDisable UAC for standard accounts in Windows 10 (Please read full post before replying. Thanks.) Pin
djdynamix18-Apr-17 8:01
Memberdjdynamix18-Apr-17 8:01 
AnswerRe: Disable UAC for standard accounts in Windows 10 (Please read full post before replying. Thanks.) Pin
Richard Deeming24-Apr-17 9:08
mveRichard Deeming24-Apr-17 9:08 
GeneralRe: Disable UAC for standard accounts in Windows 10 (Please read full post before replying. Thanks.) Pin
djdynamix30-Apr-17 6:06
Memberdjdynamix30-Apr-17 6:06 
GeneralRe: Disable UAC for standard accounts in Windows 10 (Please read full post before replying. Thanks.) Pin
Richard Deeming3-May-17 9:40
mveRichard Deeming3-May-17 9:40 
GeneralRe: Disable UAC for standard accounts in Windows 10 (Please read full post before replying. Thanks.) Pin
djdynamix6-May-17 13:50
Memberdjdynamix6-May-17 13:50 
AnswerRe: Disable UAC for standard accounts in Windows 10 (Please read full post before replying. Thanks.) Pin
Gerry Schmitz3-May-17 11:56
mveGerry Schmitz3-May-17 11:56 
GeneralRe: Disable UAC for standard accounts in Windows 10 (Please read full post before replying. Thanks.) Pin
djdynamix6-May-17 13:45
Memberdjdynamix6-May-17 13:45 
QuestionWindows 10 network copies cull "system files"? Pin
charlieg16-Mar-17 16:43
Membercharlieg16-Mar-17 16:43 
AnswerRe: Windows 10 network copies cull "system files"? Pin
charlieg16-Mar-17 17:26
Membercharlieg16-Mar-17 17:26 
JokeRe: Windows 10 network copies cull "system files"? Pin
Randor 21-Apr-17 16:36
professional Randor 21-Apr-17 16:36 
NewsCode Signing Pin
Michael Haephrati4-Dec-16 2:35
mvaMichael Haephrati4-Dec-16 2:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.