caramen Posted January 31, 2015 Share Posted January 31, 2015 (edited) Hi all How to remove a part of a returned value ? The value will be some like C:PROGRA~1COMMON~1SYMANT~1VIRUSD~120090907.050 I need only this: 20090907.050 if you need the code just say me but it s not needed i guess It is only a part of code with a regread and the returned value is here so... Thx guys For help you to understand i give you my logic: RegRead: OK $Value = C:PROGRA~1COMMON~1SYMANT~1VIRUSD~120090907.050 $Result= (C:PROGRA~1COMMON~1SYMANT~1VIRUSD~120090907.050) - (C:PROGRA~1COMMON~1SYMANT~1VIRUSD~1) $result= 20090907.050 GuiCtrlSetData ($ID1 , ""&$Result) How can i get the result ? Edited January 31, 2015 by caramen My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
Solution mikell Posted January 31, 2015 Solution Share Posted January 31, 2015 Simple StringSplit usage $Value = "C:\PROGRA~1\COMMON~1\SYMANT~1\VIRUSD~1\20090907.050" $split = StringSplit($Value, "\") $result= $split[$split[0]] Msgbox(0,"", $result) caramen 1 Link to comment Share on other sites More sharing options...
caramen Posted January 31, 2015 Author Share Posted January 31, 2015 (edited) Working like a charme Thx ;Detection de la definition virus ;Decoupage du resultat Local $Split = StringSplit($Reg3,"\") Local $Resulta = $Split [$Split[0]] GUICtrlSetData ($ScanSEPDEF , "Def. SEP: "&$Resulta) Edited January 31, 2015 by caramen My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki 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