Micro Focus QTP (UFT) Forums
[UFT] Close opened folder - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: [UFT] Close opened folder (/Thread-UFT-Close-opened-folder)



[UFT] Close opened folder - robertosalemi - 02-09-2016

Hi,
how can I close one or more folder opened in my session?

For to open a new folder I used:
Code:
SystemUtil.Run "explorer.exe", "c:\"

but for close it o other folders not opened by me?

If I think to use:
Code:
'SystemUtil.CloseProcessByName "explorer.exe"

The system asked me if I want to shutdown

Thanks.


RE: [UFT] Close opened folder - robertosalemi - 02-10-2016

Hi,
I resolved with:
Code:
SystemUtil.Run "explorer.exe", nameShownInTitleBar

Thanks!