mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
40 lines
873 B
C++
40 lines
873 B
C++
#include <Core/Core.h>
|
|
|
|
using namespace Upp;
|
|
|
|
CONSOLE_APP_MAIN
|
|
{
|
|
DUMP(GetTempPath());
|
|
DUMP(GetCurrentDirectory());
|
|
|
|
DUMP(GetComputerName());
|
|
DUMP(GetUserName());
|
|
DUMP(GetDesktopManager());
|
|
|
|
DUMP(GetDesktopFolder());
|
|
DUMP(GetProgramsFolder());
|
|
DUMP(GetAppDataFolder());
|
|
DUMP(GetMusicFolder());
|
|
DUMP(GetPicturesFolder());
|
|
DUMP(GetVideoFolder());
|
|
DUMP(GetDocumentsFolder());
|
|
DUMP(GetTemplatesFolder());
|
|
DUMP(GetDownloadFolder());
|
|
|
|
String h = GetExeFilePath();
|
|
|
|
SetCurrentDirectory(GetFileFolder(h));
|
|
DUMP(GetFullPath(GetFileName(h)));
|
|
|
|
for(FindFile ff(GetFileFolder(h) + "/*.*"); ff; ff.Next()) {
|
|
DUMP(ff.GetPath());
|
|
DUMP(ff.GetLength());
|
|
DUMP(ff.IsFolder());
|
|
}
|
|
|
|
#ifdef PLATFORM_WIN32
|
|
DUMP(GetProgramsFolderX86());
|
|
DUMP(GetWindowsDirectory());
|
|
DUMP(GetModuleFileName(LoadLibrary("kernel32")));
|
|
#endif
|
|
}
|