--- In [email protected], ABHISHEK RANKA <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I want to create a text document in the current directory, via a 
script. Could anyone explain the script required?
> Or I can also copy an empty text document from a reference directory 
to current directory but how do I retrieve the path of the active 
window?


The built-in function currentdir is supposed to retrieve the current 
directory of the active folder, although it may not be 100% reliable.  
You could try

if (currentdir)
file.copy(?"c:\path\to\blank.txt", currentdir)

Reply via email to