geezery Posted June 7, 2007 Share Posted June 7, 2007 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.htmlI'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=43942There 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 EndFuncIs 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 More sharing options...
Zedna Posted June 7, 2007 Share Posted June 7, 2007 If you need to browse for folder then use FileSelectFolder() function. For FileOpenDialog() are in the helpfile nice examples ... Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
geezery Posted June 7, 2007 Author Share Posted June 7, 2007 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. Link to comment Share on other sites More sharing options...
geezery Posted June 8, 2007 Author Share Posted June 8, 2007 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? Link to comment Share on other sites More sharing options...
MHz Posted June 8, 2007 Share Posted June 8, 2007 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now