bqp2 Posted November 18, 2010 Posted November 18, 2010 I use this _RunDOS("rundll32 C:\PROGRA~1\AppS~1\bar\*.bin\mbar.dll,O") Doesnt work but if i use _RunDOS("rundll32 C:\PROGRA~1\APPS~1\bar\4.bin\mbar.dll,O") it does. now why wont it let me use wild cards, always use wild cards in dos so why is this happening? i have to use wild card cause the 4 is always different
iamtheky Posted November 19, 2010 Posted November 19, 2010 (edited) May have to change those back to long names, but this will return the folders name. Suppose you could then stringsplit it at the dot and the first part of the array will be your number. Dim $FolderName = "C:\PROGRA~1\AppS~1\bar\*.bin" Dim $FileCount = 0 $path = ScanFolder($FolderName) MsgBox(0,"Done", $path) Func ScanFolder($SourceFolder) Local $Search Local $File Local $FullFilePath $Search = FileFindFirstFile($SourceFolder & "*.*") While 1 If $Search = -1 Then ExitLoop EndIf $File = FileFindNextFile($Search) If @error Then ExitLoop $FullFilePath = $File WEnd FileClose($Search) Return $FullFilePath EndFunc Edited November 19, 2010 by iamtheky ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__)
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