ultimatepp/upptst/SysPathInfo/SysPathInfo.cpp
cxl 90ed642187 .upptst
git-svn-id: svn://ultimatepp.org/upp/trunk@9554 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-03-03 09:35:13 +00:00

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
}