Jump to content

AutoIT FileOpenFialog -> VbScript


Recommended Posts

Hello,

I'm working for making a HTA ImageX gui for Winpe 2(Vista based)

http://www.msfn.org/board/WinPE_20_ImageX_...023_t97512.html

I'm not familiar with AutoIt and I need your help to get a browse folder method working.

There is already a gui for ImageX made by AutoIT http://www.autoitscript.com/forum/index.php?showtopic=43942

There is a browse file function that works also on WinPE. I would need that option also in my project, but vbscript can't offer it on WinPE.

Func BrowseForWimToLoad()
    $sFile = FileOpenDialog( "Select source file", "C:\", "WIM Files (*.wim)", 3)
    If @error Then Return ""

    Return $sFile
EndFunc

Is it possible to make a small autoit script for that?

I must also get the returned folder path to use in my HTA.

Thanks in advance, if the request is illegal delete this topic.

Link to comment
Share on other sites

I tried that FileSelectFolder, but it didn't work on WinPe. But I managed to write the needed script. BTW Is there any support for HTA?

Run MSHTA.exe in the system directory with the full path of your HTA file as an argument.

:)

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...