# Using WScript object method to get script path

**URL:** <https://discourse.mcneel.com/t/using-wscript-object-method-to-get-script-path/28898>\
**Category:** Scripting\
**Created:** [February 1, 2016, 12:07pm UTC](https://discourse.mcneel.com/t/using-wscript-object-method-to-get-script-path/28898 "2016-02-01T12:07:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![krsnadas](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/krsnadas/32/46010_2.png) [@krsnadas](https://discourse.mcneel.com/u/krsnadas)\
**Post date:** [February 1, 2016, 12:07pm UTC](https://discourse.mcneel.com/t/using-wscript-object-method-to-get-script-path/28898/1 "2016-02-01T12:07:35Z")

</div>

I read somewhere that WScript methods `GetScriptName` and `GetScriptFullName` don’t work for Rhinoscript. I want to confirm if this is true and if there is some other way to get the path of the script file that I loaded using `_LoadScript` ?

---

<div class="post-metadata">

**Author:** ![clement](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/clement/32/759176_2.png) [@clement](https://discourse.mcneel.com/u/clement)\
**Post date:** [February 1, 2016, 12:29pm UTC](https://discourse.mcneel.com/t/using-wscript-object-method-to-get-script-path/28898/2 "2016-02-01T12:29:54Z")

</div>

@krsnadas, you might try:

```auto
strPath = Rhino.LastLoadedScriptFile

```

- 

c.

---

<div class="post-metadata">

**Author:** ![krsnadas](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/krsnadas/32/46010_2.png) [@krsnadas](https://discourse.mcneel.com/u/krsnadas)\
**Post date:** [February 1, 2016, 1:05pm UTC](https://discourse.mcneel.com/t/using-wscript-object-method-to-get-script-path/28898/3 "2016-02-01T13:05:22Z")

</div>

Thanks, @clement. That does it.
