Jump to content

Recommended Posts

Posted

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.

Posted

I would just need a little script that pops the browse folder dialog and could return the selected path i. e. to stdout so I could grab it from vbscript.

Posted

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?

Posted

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.

:)

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
×
×
  • Create New...