PDA

View Full Version : How to open the direct folder?


chucksu
02-17-2008, 06:14 PM
Hello, anybody here?

Do you know how to write the script code for opening the direct folder?
Like in Windows XP system, when I click the folder icon twice, then I can read the files which are in the folder.
Now I would like do the same process in AMS6.0 by using the button object.
I ever try the functions "Folder.Getcurrent" and "Folder.Setcurrent", but it's not work. Do I miss any step or?

Does anyone can make the example to me?

Best Regards,

Chuck Su

RizlaUK
02-17-2008, 06:29 PM
try like this, edit the drive and path only, leave the "/E", its a commanlline switch for explorer

File.Run("Explorer", "/E,c:\\path\\to\\folder", "", SW_SHOWNORMAL, false);

chucksu
02-17-2008, 06:47 PM
try like this, edit the drive and path only, leave the "/E", its a commanlline switch for explorer

File.Run("Explorer", "/E,c:\\path\\to\\folder", "", SW_SHOWNORMAL, false);


It's cool. It's working now. Thank you very much. :yes

RizlaUK
02-17-2008, 07:47 PM
no problem, glad to help :yes