scorpio82 Posted November 23, 2011 Share Posted November 23, 2011 Hello, my script: expandcollapse popup#cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.6.1 Author: myName Script Function: Template AutoIt script. #ce ---------------------------------------------------------------------------- ; Script Start - Add your code below here $cmd ="net use y: \\10.12.4.77\public\software\datamining\SAS_EGuide43_SoftDepot /persistent:yes" RunWait(@ComSpec & " /c " & $cmd, "", @SW_HIDE) $tekst = "1: E Guide" & @CRLF & "2: E guide E miner" & @CRLF & "4: E guide E miner E admin" $keuze= InputBox("Software profiel kiezen",$tekst) If $keuze = "1" Then ;keuze 1 $cmd = "Y:\INSTALL_Profile1_EGUIDE.CMD" RunWait(@ComSpec & " /c " & $cmd, "y:\"); , @SW_HIDE) EndIf #cs If $keuze = "2" Then ;keuze 2 $cmd = "y:\INSTALL_Profile2_EGUIDE_EMINER.CMD" RunWait(@ComSpec & " /c " & $cmd, "y:\"); , @SW_HIDE) EndIf If $keuze = "4" Then ;keuze 4 $cmd = "y:\INSTALL_Profile4_EGUIDE_EMINER_ADMIN.CMD" RunWait(@ComSpec & " /c " & $cmd, "y:\"); , @SW_HIDE) EndIf #ce My question: How do I delete the Y: Do I put above $cmd=... "net use y: \\ del" Can someone help me Kind regards, Steven Link to comment Share on other sites More sharing options...
Tonnie Posted November 23, 2011 Share Posted November 23, 2011 $cmd = "net use Y: /delete" Link to comment Share on other sites More sharing options...
Country73 Posted November 23, 2011 Share Posted November 23, 2011 Another option, in case you don't want to use the Net Use command DriveMapDel("Y:") If you try to fail and succeed which have you done?AutoIt Forum Search Link to comment Share on other sites More sharing options...
spudw2k Posted November 23, 2011 Share Posted November 23, 2011 You could even use DriveMapAdd() Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
scorpio82 Posted November 24, 2011 Author Share Posted November 24, 2011 Thanks a lot! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now