# Get File name using file scripting object

**URL:** <https://forum.kirupa.com/t/get-file-name-using-file-scripting-object/20801>\
**Category:** Uncategorized\
**Created:** [May 13, 2003, 3:45pm UTC](https://forum.kirupa.com/t/get-file-name-using-file-scripting-object/20801 "2003-05-13T15:45:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gbay](https://avatars.discourse-cdn.com/v4/letter/g/6f9a4e/32.png) [@gbay](https://forum.kirupa.com/u/gbay)\
**Post date:** [May 13, 2003, 3:45pm UTC](https://forum.kirupa.com/t/get-file-name-using-file-scripting-object/20801/1 "2003-05-13T15:45:30Z")

</div>

hi all,  
this is driving me nuts!:hangover:  
i’m using asp/jscript.  
i need to find the name of a folder which is in another folder whos name i know.  
eg. my path is: images/productImages/sk12/  
i need to find out the name of the folder (theres only one) which is in the folder sk12.  
i know its only 4 lines of code, but which methods do i need? i keep getting ‘path not found’, even if i put the absolute path name in!  
many thanks

- D
