Sign in to follow this  
Followers 0
Danny35d

FileSelectFolder()

6 posts in this topic

I create a robocopy gui Link

I will like to use it with my BartPe but, when I try to select a folder using FileSelectFolder function all it display is a grey window with the ok and cancel buttons, I'm not able to select any folder.

Anybody knows how this function works or if I missing a dll or something else to make this function work under BartPE.


AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line

Share this post


Link to post
Share on other sites



Anyone???


AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line

Share this post


Link to post
Share on other sites

Hi,

dunno but maybe it has something to do with the need of IE. :">

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

$ret = FileOpenDialog('Open Config File', "::{450D8FBA-AD25-11D0-98A8-0800361B1103}", 'Config Files (*.Cfg)', 3)

Can't test now, but maybe "My Documents" isn't defined or doesn't exist in your PE environment?

What do you see in your PE's registry?

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}

[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

Share this post


Link to post
Share on other sites

Both lines of FileSelectFolder as used

$ret = FileSelectFolder('Select a source path.', '', 2)
oÝ÷ Ù«­¢+Ø(ÀÌØíÉÐô¥±M±Ñ½±È ÌäíM±ÐÑÉÐÁÑ ¸Ìäì°ÌäìÌäì°Ì¤

Since the root dir is not specified, then the Desktop is used. As the environmental variables are different in BartPE, then perhaps AutoIt searching the registry for the desktop cannot be found and the call to shell32.dll is invalid for it to work?

As a workaround if I am right, perhaps specify a root dir like @ScriptDir or use EnvGet to get one of the evironmental variable values to use.

Here is a list of Environmental variables I have recorded.

AllUsersProfile = B:\Documents and Settings\All Users
AutoRun = 1
ComputerName = Minint-JVC
ComSpec = X:\i386\System32\cmd.exe
OS = Windows_NT
Path = X:\i386;X:\i386\System32;X:\Bin
PathExt = .Com;.Exe;.Bat;.Cmd;.Vbs;.Js;.Ws
Prompt = $P$G
RamDrv = B:
SystemDrive = X:
SystemRoot = X:\i386
Temp = B:
Tmp = B:
UserProfile = B:\Documents and Settings\Default User
WinDir = X:\i386

Or try to specifiy a literal like C:\ as you maybe using Robocopy as a backup feature?

Share this post


Link to post
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
Sign in to follow this  
Followers 0