1 /*****************************************************************************\
4 * Author : Chris Koeritz *
8 * This program converts a pathname to its 8.3 name. Only for windows. *
10 *******************************************************************************
11 * Copyright (c) 2007-$now By Author. This program is free software; you can *
12 * redistribute it and/or modify it under the terms of the GNU General Public *
13 * License as published by the Free Software Foundation; either version 2 of *
14 * the License or (at your option) any later version. This is online at: *
15 * http://www.fsf.org/copyleft/gpl.html *
16 * Please send any updates to: fred@gruntose.com *
17 \*****************************************************************************/
19 #include <application/windoze_helper.h>
20 #include <basis/astring.h>
21 #include <structures/static_memory_gremlin.h>
29 using namespace basis;
30 using namespace structures;
32 ///HOOPLE_STARTUP_CODE;
34 int main(int argc, char *argv[])
36 astring shorty('\0', 2048);
38 printf("This program needs a path to convert to its short form.\n");
42 GetShortPathNameA(argv[1], shorty.s(), 2045);
44 strcpy(shorty.s(), argv[1]);
46 shorty.replace_all('\\', '/');
47 printf("%s", shorty.s());
51 #ifdef __BUILD_STATIC_APPLICATION__
52 // static dependencies found by buildor_gen_deps.sh:
53 #include <basis/astring.cpp>
54 #include <basis/common_outcomes.cpp>
55 #include <basis/mutex.cpp>
56 #include <structures/static_memory_gremlin.cpp>
57 #endif // __BUILD_STATIC_APPLICATION__