how get filename in directory
i want execute a file in Specified folder
problem is name of file unknown and different in each system
how can i get file name and run it
example
system1:
c:\test\123gh.msi
system2:
c:\test\746gh.msi
Archive: how get filename in directory
how get filename in directory
i want execute a file in Specified folder
problem is name of file unknown and different in each system
how can i get file name and run it
example
system1:
c:\test\123gh.msi
system2:
c:\test\746gh.msi
You can use FindFirst and friends to search for c:\test\*.msi
more help please?
code or example code
find it
FindFirst $0 $1 c:\test\*.msi
loop:
StrCmp $1 "" done
DetailPrint $1
FindNext $0 $1
Goto loop
done:
tanks man
You forgot FindClose after done...