Skip to content
Snippets Groups Projects
Commit 652fe9ca authored by rswindell's avatar rswindell
Browse files

Added %~ command-line specifier for DOS compatible (8.3) filename.

parent 4dc451a4
Branches
Tags
No related merge requests found
...@@ -936,13 +936,21 @@ char * sbbs_t::cmdstr(char *instr, char *fpath, char *fspec, char *outstr) ...@@ -936,13 +936,21 @@ char * sbbs_t::cmdstr(char *instr, char *fpath, char *fspec, char *outstr)
strcat(cmd,str); strcat(cmd,str);
break; break;
case 'Y': case 'Y':
strcat(cmd, strcat(cmd,comspec);
comspec
);
break; break;
case 'Z': case 'Z':
strcat(cmd,cfg.text_dir); strcat(cmd,cfg.text_dir);
break; break;
case '~': /* DOS-compatible (8.3) filename */
#ifdef _WIN32
char sfpath[MAX_PATH];
strcpy(sfpath,fpath);
GetShortPathName(fpath,sfpath,sizeof(sfpath));
strcat(cmd,sfpath);
#else
strcat(cmd,fpath);
#endif
break;
case '!': /* EXEC Directory */ case '!': /* EXEC Directory */
strcat(cmd,cfg.exec_dir); strcat(cmd,cfg.exec_dir);
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment