Click here to Skip to main content
15,389,918 members
Home / Discussions / Windows Development
   

Windows Development

 
AnswerRe: Windows to ubunto Pin
Eddy Vluggen8-Nov-17 1:04
professionalEddy Vluggen8-Nov-17 1:04 
QuestionGRRRR!! 32 bit / 64 bit file mappings... Pin
Member 798912230-May-17 3:09
MemberMember 798912230-May-17 3:09 
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 
Of course I do not intentionally want to put files into \Windows\System32!

But my utility is agnostic with respect to the file name specified on the call line. If the user sits in \Windows\System32\ and specifies plain filename, with no path, the utility accepts that - it does not make any specific check for \Windows\System32 saying "I think you shouldn't write to this directory". That is the responsibility of the user.

There are other directories where I really don't want to leave .bat files, such as C:\
For all practical purposes it doesn't matter: The desktop user really calls a small script that generates the file, executes it, and deletes it. The problem with \Windows\System32 is that the file generated under \Windows\System32 cannot be deleted (from the script) under that name, because it isn't there, it is in a different place, under a different name from the name it was created with!

When the user sits in \Windows\System32 and explicitly asks for writing a .bat file there, and it is automatically deleted immediately after running, then I do not see the big problem: The user has write access, then I will do what he asks for. In locations where the user has no write privleges, the utility fails - I'd be happy to see that in \Windows\System32. The problem is that you can create the file, but you can't delete it without knowing all the inner workings and give special treatment to a bunch of directory names that appears to be quite normal.

There are a number of such virtual directories in Windows, essentially for accessing user profile data. In those cases, line 1 and line 2 in a given script file sees the same real file when using identical names. That is not the case here: A .net application sees a different file from what cmd.exe sees. That is what creates the problems.
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 
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 

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.