From f2767707ef8bd9a997207b37b22ff0db5f8ab639 Mon Sep 17 00:00:00 2001 From: Dylan Reinhold Date: Mon, 26 May 2014 10:37:15 -0700 Subject: [PATCH] Allow the mbe file move to work in windows based systems. --- dsd_file.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dsd_file.c b/dsd_file.c index 2286744..c805885 100644 --- a/dsd_file.c +++ b/dsd_file.c @@ -213,7 +213,11 @@ closeMbeOutFile (dsd_opts * opts, dsd_state * state) strftime (datestr, 31, "%Y-%m-%d-%H%M%S", &timep); sprintf (newfilename, "nac%X-%s-tg%i%s", state->nac, datestr, talkgroup, ext); 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); +#endif result = system (shell); state->tgcount = 0;