Jump to content

Uninstall a App


bqp2
 Share

Recommended Posts

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

Link to comment
Share on other sites

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

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...