Assuming you're using what you showed here - "create backup file on first save"
https://community.slickedit.com/index.php/topic,15783.msg60208.html#msg60208it seems you have "backup location" set to "global nested directories". I guess this means that your backups will all be on the same drive but separated into nested folders according to the path of the file being saved. Is that what's currently happening?
If you click the help button when you're in the options dialog you'll see that there's options "same directory as *.bak" and "use child directory" - both of which co-locate the backup with the file being saved.
There's some other ways. There's an environment variable VSLICKBACKUP that you can set. In project properties on the open tab you should be able to have
SET VSLICKBACKUP=whatever
allowing you to choose a specific backup folder when the project is made active. I haven't tested this.
Another way is to use a customized version of the save_file function - type fp save_file on the slick command line. save_file is described as "a hook function that the user may replace". Below is one version of save_file that I use. The commented lines with <<<<<<<<<<< are some debugging code that I added - the "say" function outputs text to the vs debug window. The following line
//set_env("VSLICKBACKUP", strip_filename(_workspace_filename, 'N') :+ "/backup1" );
sets VSLICKBACKUP to a "backup1" folder in the workspace file folder - I assume this worked but I don't remember now. You can use the "strip-filename" function to get the drive of the file being saved.
Towards the end of the save_file function below, you'll see I'm making two extra copies of the file (because it amuses me) - one to google drive and one to one-drive.
Another thing you can do is use the _cbsave_ callback.
Yet another option is to use a Windows drive mapping and set the drive map in project properties.
I suspect you can also use an environment variable %whatever% in the "backup directory path" setting - not sure if this works.
Unlike you I have backup history enabled which means I don't get to set "backup location" - but I have "backup directory path" set to "./SlickBackups/" which means I get lots of child folders called SlickBackups.
_str save_file(_str filename,_str options)
{
#if 0
int renumber_flags=numbering_options();
if (renumber_flags&VSRENUMBER_AUTO) {
if (renumber_flags&VSRENUMBER_COBOL) {
renumber_lines(1,6,'0',false,true);
}
if (renumber_flags&VSRENUMBER_STD) {
renumber_lines(73,80,'0',false,true);
}
}
#endif
//say("Save " :+ options :+ " " :+ filename); <<<<<<<<<<<<<<
//set_env("VSLICKBACKUP", "C:/GP/TEMP/backups"); <<<<<<<<<<<<<<<<<
//set_env("VSLICKBACKUP", strip_filename(filename,'N') :+ "/BACK1" ); <<<<<<<<<<<<<<
//set_env("VSLICKBACKUP", strip_filename(_workspace_filename, 'N') :+ "/backup1" ); <<<<<<<<<<
typeless status=_save_file(options " "_maybe_quote_filename(filename));
if (!status && file_eq(strip(filename,'B','"'),p_buf_name)) {
if (p_modified_temp_name!='') {
_as_removefilename(p_modified_temp_name,true);
p_modified_temp_name='';
}
//_cbsave_filewatch();
#if 1
call_list('_cbsave_');
//10:51am 7/3/1997
//Dan modified for auto-tagging
if (def_autotag_flags2&AUTOTAG_ON_SAVE) {
//messageNwait(nls('got here'));
TagFileOnSave();
}
#endif
}
_str pa = 'C:\Users\GP\Google Drive\slick\copy-on-save\' :+ strip_filename(filename,'DN');
if (!path_exists(pa)) {
int result = make_path(pa);
if (result) {
_message_box("slick backup make path failed : " :+ result :+ pa);
return status;
}
}
int result2 = copy_file(filename, pa :+ strip_filename(filename,'P'));
if (result2 != 0) {
_message_box("slick backup main google drive copy failed " :+ (_str)(result2));
}
int result = copy_file(filename, 'C:\Users\GP\OneDrive\slick-copy-on-save\' :+ strip_filename(filename,'P'));
if (result != 0) {
_message_box("slick backup main one drive copy failed " :+ (_str)(result));
}
return(status);
}