Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

Commit

Permalink
Re-Hid the command prompt.
Browse files Browse the repository at this point in the history
  • Loading branch information
Krutonium committed Jul 24, 2015
1 parent bcbb03d commit 4671851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Windows 10 Login Background Changer/Form1.vb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Public Class Form1
TakeOwn.UseShellExecute = True
TakeOwn.WorkingDirectory = System.Environment.GetEnvironmentVariable("windir") 'Gets Windows Directory
TakeOwn.Verb = "runas" 'Run as Admin
TakeOwn.WindowStyle = ProcessWindowStyle.Normal 'Shows the command prompt, though you can change it to .Hidden to hide it.
TakeOwn.WindowStyle = ProcessWindowStyle.Hidden 'Shows the command prompt, though you can change it to .Hidden to hide it.
TakeOwn.FileName = "cmd.exe"
TakeOwn.Arguments = "/c " & Temp & "/takemyfiles.bat" '/c tells command prompt to execute and close, then we supply the path to our take-ownership batch.
Dim L = Process.Start(TakeOwn) 'Start the take ownership program.
Expand Down

0 comments on commit 4671851

Please sign in to comment.