Hi
I am trying to open a file that can have different extension (.cue,.img) and name from a folder with a program
I can extract it to a folder but can't open it after
But i can open the file in that program if i don't extract it (if it is launched uncompressed)
The bad thing is that i have to keep my files compressed for space reasons
Searched everywhere but always find some different code that could work so i don't even know now which method is best
So far i have this
$app = "program.exe"
$app1 = "splash.exe"
$windows = "program window"
$Source = $CmdLine [1]
$Dest = "D:\Temp\"
If $CmdLine[0] == 1 Then
RunWait('"'&@ScriptDir & '\7z.exe"' & ' x "' & $Source & '" ' & "-y -o" & '"' & $Dest & '"', "", @SW_HIDE)
_MouseTrap(@DesktopWidth, @DesktopHeight, @DesktopWidth, @DesktopHeight)
Run( $app1 )
Do
Sleep(1)
Until _IsPressed( "20" )
ProcessClose( $app1 )
Run('"' & $app & '" "' & $CmdLine[1] & '"')
WinWait ( $windows )
WinActivate ( $windows )
While ProcessExists( $app )
Sleep(500)
WEnd
Exit 0
EndIf
If someone know how to do it please help
Thanks