# Save As dialogue & clearing vars?

**URL:** https://forum.highend3d.com/t/save-as-dialogue-clearing-vars/4132
**Category:** Maya
**Tags:** mel
**Created:** [October 3, 2004, 11:06pm UTC](https://forum.highend3d.com/t/save-as-dialogue-clearing-vars/4132 "2004-10-03T23:06:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jessec](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/j/9d8465/32.png) [@jessec](https://forum.highend3d.com/u/jessec)
#### Post date: [October 3, 2004, 11:06pm UTC](https://forum.highend3d.com/t/save-as-dialogue-clearing-vars/4132/1 "2004-10-03T23:06:46Z")

</div>

Ok, so I found something like "fileDialog" will open the "Open" dialogue, and allow the user to search for which file to open, but how do I display the "Save As" dialogue allowing the user to specify what file and directory they would like to save to, and return that filepath?

Also, is there a way to erase all the vars I've created in my recent Maya session? I keep having to either shut down and restart Maya, or just make sure and {bracket} my commands and make sure I print it out before exiting the bracket and such... Any command to dump all the variables I've created?

Thanks...

---

<div class="post-metadata">

### Author: ![failure](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/f/f08c70/32.png) [@failure](https://forum.highend3d.com/u/failure)
#### Post date: [October 4, 2004, 12:00am UTC](https://forum.highend3d.com/t/save-as-dialogue-clearing-vars/4132/2 "2004-10-04T00:00:07Z")

</div>

fileBrowserDialog command offes more customization. It's available on win platform only.

You can't undeclare a variable. Only way variable name can be "lost" is to go out of scope. So use brackets.

You can dump all global variables using env command:

string $vars[] = `env`;  
print $vars;
