ultimatepp/upptst/SysPathInfo/SysPathInfo.cpp
cxl 6a4d7a10f6 .upptst
git-svn-id: svn://ultimatepp.org/upp/trunk@9514 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-02-22 09:52:59 +00:00

39 lines
871 B
C++

#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
DUMP(GetWindowsDirectory());
DUMP(GetModuleFileName(LoadLibrary("kernel32")));
DUMP(GetTempPath());
DUMP(GetCurrentDirectory());
DUMP(GetComputerName());
DUMP(GetUserName());
DUMP(GetDesktopManager());
DUMP(GetDesktopFolder());
DUMP(GetProgramsFolder());
#ifdef PLATFORM_WIN32
DUMP(GetProgramsFolderX86());
#endif
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());
}
}