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
No related branches found
No related tags found
No related merge requests found
......@@ -936,13 +936,21 @@ char * sbbs_t::cmdstr(char *instr, char *fpath, char *fspec, char *outstr)
strcat(cmd,str);
break;
case 'Y':
strcat(cmd,
comspec
);
strcat(cmd,comspec);
break;
case 'Z':
strcat(cmd,cfg.text_dir);
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 */
strcat(cmd,cfg.exec_dir);
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment