mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-20 12:45:40 -05:00
Merge pull request #35 from dreinhold/master
Allow the mbe file move to work in windows based systems.
This commit is contained in:
@@ -213,7 +213,11 @@ closeMbeOutFile (dsd_opts * opts, dsd_state * state)
|
|||||||
strftime (datestr, 31, "%Y-%m-%d-%H%M%S", &timep);
|
strftime (datestr, 31, "%Y-%m-%d-%H%M%S", &timep);
|
||||||
sprintf (newfilename, "nac%X-%s-tg%i%s", state->nac, datestr, talkgroup, ext);
|
sprintf (newfilename, "nac%X-%s-tg%i%s", state->nac, datestr, talkgroup, ext);
|
||||||
sprintf (new_path, "%s%s", opts->mbe_out_dir, newfilename);
|
sprintf (new_path, "%s%s", opts->mbe_out_dir, newfilename);
|
||||||
|
#ifdef _WIN32
|
||||||
|
sprintf (shell, "move %s %s", opts->mbe_out_path, new_path);
|
||||||
|
#else
|
||||||
sprintf (shell, "mv %s %s", opts->mbe_out_path, new_path);
|
sprintf (shell, "mv %s %s", opts->mbe_out_path, new_path);
|
||||||
|
#endif
|
||||||
result = system (shell);
|
result = system (shell);
|
||||||
|
|
||||||
state->tgcount = 0;
|
state->tgcount = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user