Author Topic: Looking for SlickEdit macro to save multiple copies of the same file  (Read 4456 times)

wolverine

  • Community Member
  • Posts: 6
  • Hero Points: 0
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

Wanderer

  • Senior Community Member
  • Posts: 557
  • Hero Points: 23
Re: Looking for SlickEdit macro to save multiple copies of the same file
« Reply #1 on: November 03, 2006, 05:32:09 PM »
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.
« Last Edit: November 03, 2006, 08:13:13 PM by Wanderer »

wolverine

  • Community Member
  • Posts: 6
  • Hero Points: 0
Re: Looking for SlickEdit macro to save multiple copies of the same file
« Reply #2 on: November 03, 2006, 07:20:11 PM »
Thanks Wanderer, I will try that out.