CopyPastor

Detecting plagiarism made easy.

Score: 0.8337928213475312; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2019-07-07
by Programming scientist

Original Post

Original - Posted on 2013-07-04
by Ansgar Wiechers



            
Present in both answers; Present only in the new answer; Present only in the old answer;

If UAC is enabled on the computer, My way work:
If Not WScript.Arguments.Named.Exists("elevate") Then CreateObject("Shell.Application").ShellExecute WScript.FullName _ , """" & WScript.ScriptFullName & """ /elevate", "", "runas", 1 WScript.Quit End If
If UAC is enabled on the computer, something like this should work:
If Not WScript.Arguments.Named.Exists("elevate") Then CreateObject("Shell.Application").ShellExecute WScript.FullName _ , """" & WScript.ScriptFullName & """ /elevate", "", "runas", 1 WScript.Quit End If
'actual code

        
Present in both answers; Present only in the new answer; Present only in the old answer;