Sign in to follow this  
Followers 0
bqp2

Uninstall a App

2 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by iamtheky

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

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  
Followers 0