PDA

View Full Version : how do I get back the location information from "save as" prompt?


cqprod27
08-29-2002, 09:39 PM
I've figured out from other post how to invoke the "save as" prompt from windows. But I want the get the actually file location information back ... the whole path, without actually saving the file yet.

This is what need back:
C:\Documents and Settings\machineName\Desktop\saveFileNameAs.*

This is what I have so far:
<script>

function saveAsMe (filename)
{
document.execCommand('SaveAs',true,filename)
}
</script>

<input type=button value="Save" onclick="saveAsMe('sample.txt');">

This actaully saves the content of the viewing page if you click save.

Any light someone can shade would be greatly appreciated.

Thanks,

- cqprod27

beetle
08-29-2002, 09:44 PM
I'm just going off what I read, but according to MSDN (http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/execcommand.asp) the only return value for execCommand() is a boolean value indicating whether or not the command was successful.

cqprod27
08-29-2002, 09:46 PM
ok, thanks