Jump to content
Sign in to follow this  
MPHillier

Delprof GUI

Recommended Posts

MPHillier

I am piece mealing a little GUI to use with Delprof.exe I cannot get Dos to read my GuiCtrlInput

Here the code. I've tried 100 ways and this seems to be the closest.

*********************************

#include <GUIConstants.au3>

#include <IE.au3>

HotKeySet("{ESC}", "Terminate")

Opt("GUIOnEventMode", 1) ; Change to OnEvent mode

#include <GuiConstants.au3>

GuiCreate(" -- Delprof", 270, 133,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))

$Delp= "delprof.exe /i /c:\\"

$Button_1 = GuiCtrlCreateButton("&Run", 30, 30, 60, 20)

GUICtrlSetOnEvent($Button_1, "Button_1")

$cpu = GuiCtrlCreateInput("", 100, 30, 140, 20)

$cpu_R = GUICtrlRead($cpu)

$Label_1 = GuiCtrlCreateLabel("Computer", 145, 10, 60, 20)

$Label_2 = GuiCtrlCreateLabel("/Quiet and /Ignore", 80, 70, 150, 20)

GuiSetState()

Func Button_1()

Run($Delp & $cpu_R)

EndFunc

Func Terminate()

Exit 0

EndFunc

;GUISetState ()

; Run the GUI until the dialog is closed

While 1

$msg = GUIGetMsg()

If $msg = $GUI_EVENT_CLOSE Then ExitLoop

Wend

*********************************

Thanks


I Break and Fix things... If the surf is up I'm outta here.....

Share this post


Link to post
Share on other sites
MPHillier

Man that was it. I understand now - $cpu_R = GUICtrlRead($cpu).

I made a similar GUI with Setacl.exe and had no problems with it.

Much thanks.


I Break and Fix things... If the surf is up I'm outta here.....

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×