SlickEdit Community
SlickEdit Product Discussion => SlickEdit® => Topic started by: wolverine on November 03, 2006, 04:32:48 PM
-
I am looking for a macro or standalone tool that will do the following:
I edit my file in slickedit and that file sits in the development directory.
When I save the file, I would like SlickEdit to save a "copy" of the
same file to another directory (application server directory).
In the UN*X world I could have soft links and not having to resort
to all this. However, in the windows world I am forced to copy my
file every time I save it in Slickedit so that the app server can pick
up the changes.
I've tried some folder sync tools to do this, but nothing is working
as I would like it to.
Thanks in advance
-
Write a macro of the form _cbsave_YourMacroNameHere().
From within that you can copy your file to the server directory.
Here's a trivial example:
_cbsave_cb()
{
messageNwait("_file_write_cb");
}
Regarding links, you can create hard or soft links on Windows if you are using an NTFS file system.
-
Thanks Wanderer, I will try that out.