# Selecting/Highlighting a file in a window

**URL:** <https://forum.kirupa.com/t/selecting-highlighting-a-file-in-a-window/327247>\
**Category:** flash\
**Created:** [February 16, 2012, 3:52am UTC](https://forum.kirupa.com/t/selecting-highlighting-a-file-in-a-window/327247 "2012-02-16T03:52:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![four4swords](https://avatars.discourse-cdn.com/v4/letter/f/87869e/32.png) [@four4swords](https://forum.kirupa.com/u/four4swords)\
**Post date:** [February 16, 2012, 3:52am UTC](https://forum.kirupa.com/t/selecting-highlighting-a-file-in-a-window/327247/1 "2012-02-16T03:52:32Z")

</div>

Hi,

I’m currently building an app in Adobe Air 2.6. I use this line of code:

```auto
var url:String = "C:\Workspace";

var ff:File = new File( url );
ff.openWithDefaultApplication();

```

Which opens up the directory in a new window, However, say I have the name of a file in that directory… How do I make the window open and highlight/select the file?

Any ideas?
