Advertisement
Guest User

Delphi relative paths functions example

a guest
Jan 15th, 2015
494
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. PathGetCharType(' ') = [gctLFNChar]
  2. PathGetCharType('"') = [gctInvalid]
  3. PathGetCharType('''') = [gctLFNChar, gctShortChar]
  4. PathGetCharType('*') = [gctWild]
  5. PathGetCharType('.') = [gctLFNChar, gctShortChar]
  6. PathGetCharType('/') = [gctInvalid]
  7. PathGetCharType(':') = [gctSeparator]
  8. PathGetCharType(';') = [gctLFNChar]
  9. PathGetCharType('<') = [gctInvalid]
  10. PathGetCharType('>') = [gctInvalid]
  11. PathGetCharType('?') = [gctWild]
  12. PathGetCharType('A') = [gctLFNChar, gctShortChar]
  13. PathGetCharType('Я') = [gctLFNChar, gctShortChar]
  14. PathGetCharType('\') = [gctSeparator]
  15. PathGetCharType('_') = [gctLFNChar, gctShortChar]
  16. PathGetCharType('|') = [gctInvalid]
  17. PathGetCharType('~') = [gctLFNChar, gctShortChar]
  18.  
  19. PathGetDriveNumber('C:') = 2
  20. PathGetDriveNumber('C:\') = 2
  21. PathGetDriveNumber('C:\Windows') = 2
  22. PathGetDriveNumber('C:\NonExistendFolder') = 2
  23. PathGetDriveNumber('A:') = 0
  24. PathGetDriveNumber('Z:') = 25
  25. PathGetDriveNumber('\\SERVER\') = InvalidDrive
  26. PathGetDriveNumber('\\SERVER\Share\') = InvalidDrive
  27. PathGetDriveNumber('\\SERVER\Share\File.txt') = InvalidDrive
  28. PathGetDriveNumber('') = InvalidDrive
  29. PathGetDriveNumber('C') = InvalidDrive
  30. PathGetDriveNumber('invalid') = InvalidDrive
  31.  
  32. PathBuildRoot(0) = 'A:\'
  33. PathBuildRoot(1) = 'B:\'
  34. PathBuildRoot(2) = 'C:\'
  35. PathBuildRoot(25) = 'Z:\'
  36. PathBuildRoot(26) = ''
  37. PathBuildRoot(-1) = ''
  38.  
  39. PathAppend('C:\', '') = 'C:\'
  40. PathAppend('C:\', 'Temp') = 'C:\Temp'
  41. PathAppend('C:\', '\Temp') = 'C:\Temp'
  42. PathAppend('C:', 'Temp') = 'C:\Temp'
  43. PathAppend('C:', '\Temp') = 'C:\Temp'
  44. PathAppend('C:\Windows', '..\Temp') = 'C:\Windows\..\Temp'
  45.  
  46. PathQuoteSpaces('Test') = 'Test'
  47. PathQuoteSpaces('Test 1') = '"Test 1"'
  48. PathQuoteSpaces('Test "2') = '"Test \"2"'
  49. PathQuoteSpaces('Test"3') = '"Test\"3"'
  50. PathQuoteSpaces('Test 4"') = '"Test 4\\""'
  51. PathQuoteSpaces('Test''5') = 'Test''5'
  52.  
  53. PathCombine('C:\', '') = 'C:\'
  54. PathCombine('C:\', 'Temp') = 'C:\Temp'
  55. PathCombine('C:\', '\Temp') = 'C:\Temp'
  56. PathCombine('C:', 'Temp') = 'C:\Temp'
  57. PathCombine('C:', '\Temp') = 'C:\Temp'
  58. PathCombine('C:\Windows', '..\Temp') = 'C:\Temp'
  59.  
  60. PathRelativePathTo('C:\', 'C:\Temp\') = '..\Temp'
  61. PathRelativePathTo('C:\Windows\', 'C:\Temp\') = '..\Temp'
  62. PathRelativePathTo('C:\Windows\System32\', 'C:\Windows\System32\Temp\') = '.\Temp'
  63. PathRelativePathTo('C:\Windows\notepad.exe', 'C:\Windows\Temp\') = '.\Temp'
  64. PathRelativePathTo('C:\Windows\', 'C:\Windows\Temp\') = '.\Temp'
  65. PathRelativePathTo('C:\Windows\System32\temp.tmp', 'C:\Windows\Temp\') = '..\Temp'
  66.  
  67. PathCanonicalize('C:') = 'C:\'
  68. PathCanonicalize('D:') = 'D:\'
  69. PathCanonicalize('C:\') = 'C:\'
  70. PathCanonicalize('C:\C:\') = 'C:\C:\'
  71. PathCanonicalize('C:\;C:\') = 'C:\;C:\'
  72. PathCanonicalize('C:\|C:\') = 'C:\|C:\'
  73. PathCanonicalize('C;C') = 'C;C'
  74. PathCanonicalize('C|C') = 'C|C'
  75. PathCanonicalize('C:\Windows') = 'C:\Windows'
  76. PathCanonicalize('C:\Windows\') = 'C:\Windows\'
  77. PathCanonicalize('C:\Windows\notepad.exe') = 'C:\Windows\notepad.exe'
  78. PathCanonicalize('C:\NonExistendFolder') = 'C:\NonExistendFolder'
  79. PathCanonicalize('C:\Program Files\') = 'C:\Program Files\'
  80. PathCanonicalize('C:\PROGRA~1\') = 'C:\PROGRA~1\'
  81. PathCanonicalize('C:\PROGRA~2\') = 'C:\PROGRA~2\'
  82. PathCanonicalize('.') = '\'
  83. PathCanonicalize('..') = '\'
  84. PathCanonicalize('..\Temp') = 'Temp'
  85. PathCanonicalize('C:Temp') = 'C:Temp'
  86. PathCanonicalize('C:..\Temp') = 'C:..\Temp'
  87. PathCanonicalize('C:\Windows\..\Temp') = 'C:\Temp'
  88. PathCanonicalize('C:\..\Temp') = 'C:\Temp'
  89. PathCanonicalize('C:\Windows\System32\..\Temp') = 'C:\Windows\Temp'
  90. PathCanonicalize('C:\Windows\System32\..\Temp\FXSTIFFDebugLogFile.txt') = 'C:\Windows\Temp\FXSTIFFDebugLogFile.txt'
  91. PathCanonicalize('C:\.\') = 'C:\'
  92. PathCanonicalize('C:\Windows\.\..\.\Temp') = 'C:\Temp'
  93. PathCanonicalize('\\SERVER') = '\\SERVER'
  94. PathCanonicalize('\\SERVER\') = '\\SERVER\'
  95. PathCanonicalize('\\SERVER\Share') = '\\SERVER\Share'
  96. PathCanonicalize('\\SERVER\Share\') = '\\SERVER\Share\'
  97. PathCanonicalize('\\SERVER\Share\Folder') = '\\SERVER\Share\Folder'
  98. PathCanonicalize('\\SERVER\Share\Folder\..\Temp') = '\\SERVER\Share\Temp'
  99. PathCanonicalize('') = '\'
  100. PathCanonicalize('..\test') = 'test'
  101. PathCanonicalize('.') = '\'
  102. PathCanonicalize('.\Test') = 'Test'
  103. PathCanonicalize('\.\test\') = '\test\'
  104. PathCanonicalize('\test') = '\test'
  105. PathCanonicalize('%CD%') = '%CD%'
  106. PathCanonicalize('%TEMP%\SubTemp') = '%TEMP%\SubTemp'
  107. PathCanonicalize('C:\\Temp') = 'C:\Temp'
  108. PathCanonicalize('C:\Windows\\\Temp') = 'C:\Windows\Temp'
  109. PathCanonicalize('C:\Windows/Temp') = 'C:\Windows\Temp'
  110. PathCanonicalize('C:\Windows/..\Temp') = 'C:\Temp'
  111. PathCanonicalize('\\?\C:\Windows') = 'C:\Windows'
  112. PathCanonicalize('\\?\C:\Windows\..\Temp\') = 'C:\Temp\'
  113. PathCanonicalize('\\?\C:\Windows/..\Temp') = 'C:\Temp'
  114. PathCanonicalize('\\?\C:\Program Files\') = 'C:\Program Files\'
  115. PathCanonicalize('\\?\C:\Progra~1\') = 'C:\Progra~1\'
  116. PathCanonicalize('.tmp') = '.tmp'
  117. PathCanonicalize('t ') = 't '
  118. PathCanonicalize(' t') = ' t'
  119. PathCanonicalize('tmp.') = 'tmp'
  120.  
  121. PathSearchAndQualify('C:') = 'C:\Users\Александр\Documents\Embarcadero\Studio\Projects\Win32\Debug'
  122. PathSearchAndQualify('D:') = 'D:\'
  123. PathSearchAndQualify('C:\') = 'C:\'
  124. PathSearchAndQualify('C:\C:\') = 'C:\C:\'
  125. PathSearchAndQualify('C:\;C:\') = 'C:\;C:\'
  126. PathSearchAndQualify('C:\|C:\') = 'C:\|C:\'
  127. PathSearchAndQualify('C;C') = 'C:\Users\Александр\Documents\Embarcadero\Studio\Projects\Win32\Debug\C;C'
  128. PathSearchAndQualify('C|C') = 'C:\Users\Александр\Documents\Embarcadero\Studio\Projects\Win32\Debug\C|C'
  129. PathSearchAndQualify('C:\Windows') = 'C:\Windows'
  130. PathSearchAndQualify('C:\Windows\') = 'C:\Windows\'
  131. PathSearchAndQualify('C:\Windows\notepad.exe') = 'C:\Windows\notepad.exe'
  132. PathSearchAndQualify('C:\NonExistendFolder') = 'C:\NonExistendFolder'
  133. PathSearchAndQualify('C:\Program Files\') = 'C:\Program Files\'
  134. PathSearchAndQualify('C:\PROGRA~1\') = 'C:\PROGRA~1\'
  135. PathSearchAndQualify('C:\PROGRA~2\') = 'C:\PROGRA~2\'
  136. PathSearchAndQualify('.') = 'C:\Users\Александр\Documents\Embarcadero\Studio\Projects\Win32\Debug'
  137. PathSearchAndQualify('..') = 'C:\Users\Александр\Documents\Embarcadero\Studio\Projects\Win32'
  138. PathSearchAndQualify('..\Temp') = 'C:\Users\Александр\Documents\Embarcadero\Studio\Projects\Win32\Temp'
  139. PathSearchAndQualify('C:Temp') = 'C:\Users\Александр\Documents\Embarcadero\Studio\Projects\Win32\Debug\Temp'
  140. PathSearchAndQualify('C:..\Temp') = 'C:\Users\Александр\Documents\Embarcadero\Studio\Projects\Win32\Temp'
  141. PathSearchAndQualify('C:\Windows\..\Temp') = 'C:\Temp'
  142. PathSearchAndQualify('C:\..\Temp') = 'C:\Temp'
  143. PathSearchAndQualify('C:\Windows\System32\..\Temp') = 'C:\Windows\Temp'
  144. PathSearchAndQualify('C:\Windows\System32\..\Temp\FXSTIFFDebugLogFile.txt') = 'C:\Windows\Temp\FXSTIFFDebugLogFile.txt'
  145. PathSearchAndQualify('C:\.\') = 'C:\'
  146. PathSearchAndQualify('C:\Windows\.\..\.\Temp') = 'C:\Temp'
  147. PathSearchAndQualify('\\SERVER') = '\\SERVER'
  148. PathSearchAndQualify('\\SERVER\') = '\\SERVER\'
  149. PathSearchAndQualify('\\SERVER\Share') = '\\SERVER\Share'
  150. PathSearchAndQualify('\\SERVER\Share\') = '\\SERVER\Share\'
  151. PathSearchAndQualify('\\SERVER\Share\Folder') = '\\SERVER\Share\Folder'
  152. PathSearchAndQualify('\\SERVER\Share\Folder\..\Temp') = '\\SERVER\Share\Temp'
  153. PathSearchAndQualify('') = EXCEPTION: System Error.  Code: 123. Синтаксическая ошибка в имени файла, имени папки или метке тома
  154. PathSearchAndQualify('..\test') = 'C:\Users\Александр\Documents\Embarcadero\Studio\Projects\Win32\test'
  155. PathSearchAndQualify('.') = 'C:\Users\Александр\Documents\Embarcadero\Studio\Projects\Win32\Debug'
  156. PathSearchAndQualify('.\Test') = 'C:\Users\Александр\Documents\Embarcadero\Studio\Projects\Win32\Debug\Test'
  157. PathSearchAndQualify('\.\test\') = 'C:\test\'
  158. PathSearchAndQualify('\test') = 'C:\test'
  159. PathSearchAndQualify('%CD%') = 'C:\Users\Александр\Documents\Embarcadero\Studio\Projects\Win32\Debug\%CD%'
  160. PathSearchAndQualify('%TEMP%\SubTemp') = 'C:\Users\Александр\Documents\Embarcadero\Studio\Projects\Win32\Debug\%TEMP%\SubTemp'
  161. PathSearchAndQualify('C:\\Temp') = 'C:\Temp'
  162. PathSearchAndQualify('C:\Windows\\\Temp') = 'C:\Windows\Temp'
  163. PathSearchAndQualify('C:\Windows/Temp') = 'C:\Windows\Temp'
  164. PathSearchAndQualify('C:\Windows/..\Temp') = 'C:\Temp'
  165. PathSearchAndQualify('\\?\C:\Windows') = '\\?\C:\Windows'
  166. PathSearchAndQualify('\\?\C:\Windows\..\Temp\') = '\\?\C:\Temp\'
  167. PathSearchAndQualify('\\?\C:\Windows/..\Temp') = '\\?\C:\Temp'
  168. PathSearchAndQualify('\\?\C:\Program Files\') = '\\?\C:\Program Files\'
  169. PathSearchAndQualify('\\?\C:\Progra~1\') = '\\?\C:\Progra~1\'
  170. PathSearchAndQualify('.tmp') = 'C:\Users\Александр\Documents\Embarcadero\Studio\Projects\Win32\Debug\.tmp'
  171. PathSearchAndQualify('t ') = 'C:\Users\Александр\Documents\Embarcadero\Studio\Projects\Win32\Debug\t'
  172. PathSearchAndQualify(' t') = 'C:\Users\Александр\Documents\Embarcadero\Studio\Projects\Win32\Debug\ t'
  173. PathSearchAndQualify('tmp.') = 'C:\Users\Александр\Documents\Embarcadero\Studio\Projects\Win32\Debug\tmp'
  174.  
  175. PathIsValid('C:') = True
  176. PathIsValid('D:') = True
  177. PathIsValid('C:\') = True
  178. PathIsValid('C:\C:\') = True
  179. PathIsValid('C:\;C:\') = False
  180. PathIsValid('C:\|C:\') = False
  181. PathIsValid('C;C') = True
  182. PathIsValid('C|C') = False
  183. PathIsValid('C:\Windows') = True
  184. PathIsValid('C:\Windows\') = True
  185. PathIsValid('C:\Windows\notepad.exe') = True
  186. PathIsValid('C:\NonExistendFolder') = True
  187. PathIsValid('C:\Program Files\') = True
  188. PathIsValid('C:\PROGRA~1\') = True
  189. PathIsValid('C:\PROGRA~2\') = True
  190. PathIsValid('.') = False
  191. PathIsValid('..') = False
  192. PathIsValid('..\Temp') = False
  193. PathIsValid('C:Temp') = True
  194. PathIsValid('C:..\Temp') = False
  195. PathIsValid('C:\Windows\..\Temp') = False
  196. PathIsValid('C:\..\Temp') = False
  197. PathIsValid('C:\Windows\System32\..\Temp') = False
  198. PathIsValid('C:\Windows\System32\..\Temp\FXSTIFFDebugLogFile.txt') = False
  199. PathIsValid('C:\.\') = False
  200. PathIsValid('C:\Windows\.\..\.\Temp') = False
  201. PathIsValid('\\SERVER') = True
  202. PathIsValid('\\SERVER\') = True
  203. PathIsValid('\\SERVER\Share') = True
  204. PathIsValid('\\SERVER\Share\') = True
  205. PathIsValid('\\SERVER\Share\Folder') = True
  206. PathIsValid('\\SERVER\Share\Folder\..\Temp') = False
  207. PathIsValid('') = False
  208. PathIsValid('..\test') = False
  209. PathIsValid('.') = False
  210. PathIsValid('.\Test') = False
  211. PathIsValid('\.\test\') = False
  212. PathIsValid('\test') = True
  213. PathIsValid('%CD%') = True
  214. PathIsValid('%TEMP%\SubTemp') = True
  215. PathIsValid('C:\\Temp') = True
  216. PathIsValid('C:\Windows\\\Temp') = True
  217. PathIsValid('C:\Windows/Temp') = True
  218. PathIsValid('C:\Windows/..\Temp') = False
  219. PathIsValid('\\?\C:\Windows') = True
  220. PathIsValid('\\?\C:\Windows\..\Temp\') = False
  221. PathIsValid('\\?\C:\Windows/..\Temp') = False
  222. PathIsValid('\\?\C:\Program Files\') = True
  223. PathIsValid('\\?\C:\Progra~1\') = True
  224. PathIsValid('.tmp') = True
  225. PathIsValid('t ') = False
  226. PathIsValid(' t') = True
  227. PathIsValid('tmp.') = False
  228. PathIsValid('') = False
  229. PathIsValid('Test') = True
  230. PathIsValid('Test.txt') = True
  231. PathIsValid('Long long long.txt') = True
  232. PathIsValid('Тест') = True
  233. PathIsValid('虻愛逢按') = True
  234. PathIsValid(' ') = False
  235. PathIsValid('.txt') = True
  236. PathIsValid('txt.') = False
  237. PathIsValid('CON') = False
  238. PathIsValid('con') = False
  239. PathIsValid('NUL') = False
  240. PathIsValid('COM1') = False
  241. PathIsValid('COM') = True
  242. PathIsValid('PRN') = False
  243. PathIsValid('C:\Folder') = True
  244.  
  245. PathFileExists('C:') = True; FileExists: False; DirectoryExists: True
  246. PathFileExists('D:') = True; FileExists: False; DirectoryExists: True
  247. PathFileExists('C:\') = True; FileExists: False; DirectoryExists: True
  248. PathFileExists('C:\C:\') = False
  249. PathFileExists('C:\;C:\') = False
  250. PathFileExists('C:\|C:\') = False
  251. PathFileExists('C;C') = False
  252. PathFileExists('C|C') = False
  253. PathFileExists('C:\Windows') = True; FileExists: False; DirectoryExists: True
  254. PathFileExists('C:\Windows\') = True; FileExists: False; DirectoryExists: True
  255. PathFileExists('C:\Windows\notepad.exe') = True
  256. PathFileExists('C:\NonExistendFolder') = False
  257. PathFileExists('C:\Program Files\') = True; FileExists: False; DirectoryExists: True
  258. PathFileExists('C:\PROGRA~1\') = True; FileExists: False; DirectoryExists: True
  259. PathFileExists('C:\PROGRA~2\') = True; FileExists: False; DirectoryExists: True
  260. PathFileExists('.') = True; FileExists: False; DirectoryExists: True
  261. PathFileExists('..') = True; FileExists: False; DirectoryExists: True
  262. PathFileExists('..\Temp') = False
  263. PathFileExists('C:Temp') = False
  264. PathFileExists('C:..\Temp') = False
  265. PathFileExists('C:\Windows\..\Temp') = False
  266. PathFileExists('C:\..\Temp') = False
  267. PathFileExists('C:\Windows\System32\..\Temp') = True; FileExists: False; DirectoryExists: True
  268. PathFileExists('C:\Windows\System32\..\Temp\FXSTIFFDebugLogFile.txt') = False
  269. PathFileExists('C:\.\') = True; FileExists: False; DirectoryExists: True
  270. PathFileExists('C:\Windows\.\..\.\Temp') = False
  271. PathFileExists('\\SERVER') = False
  272. PathFileExists('\\SERVER\') = False
  273. PathFileExists('\\SERVER\Share') = False
  274. PathFileExists('\\SERVER\Share\') = False
  275. PathFileExists('\\SERVER\Share\Folder') = False
  276. PathFileExists('\\SERVER\Share\Folder\..\Temp') = False
  277. PathFileExists('') = False
  278. PathFileExists('..\test') = False
  279. PathFileExists('.') = True; FileExists: False; DirectoryExists: True
  280. PathFileExists('.\Test') = False
  281. PathFileExists('\.\test\') = False
  282. PathFileExists('\test') = False
  283. PathFileExists('%CD%') = False
  284. PathFileExists('%TEMP%\SubTemp') = False
  285. PathFileExists('C:\\Temp') = False
  286. PathFileExists('C:\Windows\\\Temp') = True; FileExists: False; DirectoryExists: True
  287. PathFileExists('C:\Windows/Temp') = True; FileExists: False; DirectoryExists: True
  288. PathFileExists('C:\Windows/..\Temp') = False
  289. PathFileExists('\\?\C:\Windows') = True; FileExists: False; DirectoryExists: True
  290. PathFileExists('\\?\C:\Windows\..\Temp\') = False
  291. PathFileExists('\\?\C:\Windows/..\Temp') = False
  292. PathFileExists('\\?\C:\Program Files\') = True; FileExists: False; DirectoryExists: True
  293. PathFileExists('\\?\C:\Progra~1\') = True; FileExists: False; DirectoryExists: True
  294. PathFileExists('.tmp') = False
  295. PathFileExists('t ') = False
  296. PathFileExists(' t') = False
  297. PathFileExists('tmp.') = False
  298.  
  299. PathIsDirectory('C:') = True
  300. PathIsDirectory('D:') = True
  301. PathIsDirectory('C:\') = True
  302. PathIsDirectory('C:\C:\') = False
  303. PathIsDirectory('C:\;C:\') = False
  304. PathIsDirectory('C:\|C:\') = False
  305. PathIsDirectory('C;C') = False
  306. PathIsDirectory('C|C') = False
  307. PathIsDirectory('C:\Windows') = True
  308. PathIsDirectory('C:\Windows\') = True
  309. PathIsDirectory('C:\Windows\notepad.exe') = False
  310. PathIsDirectory('C:\NonExistendFolder') = False
  311. PathIsDirectory('C:\Program Files\') = True
  312. PathIsDirectory('C:\PROGRA~1\') = True
  313. PathIsDirectory('C:\PROGRA~2\') = True
  314. PathIsDirectory('.') = True
  315. PathIsDirectory('..') = True
  316. PathIsDirectory('..\Temp') = False
  317. PathIsDirectory('C:Temp') = False
  318. PathIsDirectory('C:..\Temp') = False
  319. PathIsDirectory('C:\Windows\..\Temp') = False
  320. PathIsDirectory('C:\..\Temp') = False
  321. PathIsDirectory('C:\Windows\System32\..\Temp') = True
  322. PathIsDirectory('C:\Windows\System32\..\Temp\FXSTIFFDebugLogFile.txt') = False; DirectoryExists: True
  323. PathIsDirectory('C:\.\') = True
  324. PathIsDirectory('C:\Windows\.\..\.\Temp') = False
  325. PathIsDirectory('\\SERVER') = False
  326. PathIsDirectory('\\SERVER\') = False
  327. PathIsDirectory('\\SERVER\Share') = False
  328. PathIsDirectory('\\SERVER\Share\') = False
  329. PathIsDirectory('\\SERVER\Share\Folder') = False
  330. PathIsDirectory('\\SERVER\Share\Folder\..\Temp') = False
  331. PathIsDirectory('') = False
  332. PathIsDirectory('..\test') = False
  333. PathIsDirectory('.') = True
  334. PathIsDirectory('.\Test') = False
  335. PathIsDirectory('\.\test\') = False
  336. PathIsDirectory('\test') = False
  337. PathIsDirectory('%CD%') = False
  338. PathIsDirectory('%TEMP%\SubTemp') = False
  339. PathIsDirectory('C:\\Temp') = False
  340. PathIsDirectory('C:\Windows\\\Temp') = True
  341. PathIsDirectory('C:\Windows/Temp') = True
  342. PathIsDirectory('C:\Windows/..\Temp') = False
  343. PathIsDirectory('\\?\C:\Windows') = True
  344. PathIsDirectory('\\?\C:\Windows\..\Temp\') = False
  345. PathIsDirectory('\\?\C:\Windows/..\Temp') = False
  346. PathIsDirectory('\\?\C:\Program Files\') = True
  347. PathIsDirectory('\\?\C:\Progra~1\') = True
  348. PathIsDirectory('.tmp') = False
  349. PathIsDirectory('t ') = False
  350. PathIsDirectory(' t') = False
  351. PathIsDirectory('tmp.') = False
  352.  
  353. PathIsFileSpec('C:') = False
  354. PathIsFileSpec('D:') = False
  355. PathIsFileSpec('C:\') = False
  356. PathIsFileSpec('C:\C:\') = False
  357. PathIsFileSpec('C:\;C:\') = False
  358. PathIsFileSpec('C:\|C:\') = False
  359. PathIsFileSpec('C;C') = True
  360. PathIsFileSpec('C|C') = True
  361. PathIsFileSpec('C:\Windows') = False
  362. PathIsFileSpec('C:\Windows\') = False
  363. PathIsFileSpec('C:\Windows\notepad.exe') = False
  364. PathIsFileSpec('C:\NonExistendFolder') = False
  365. PathIsFileSpec('C:\Program Files\') = False
  366. PathIsFileSpec('C:\PROGRA~1\') = False
  367. PathIsFileSpec('C:\PROGRA~2\') = False
  368. PathIsFileSpec('.') = True
  369. PathIsFileSpec('..') = True
  370. PathIsFileSpec('..\Temp') = False
  371. PathIsFileSpec('C:Temp') = False
  372. PathIsFileSpec('C:..\Temp') = False
  373. PathIsFileSpec('C:\Windows\..\Temp') = False
  374. PathIsFileSpec('C:\..\Temp') = False
  375. PathIsFileSpec('C:\Windows\System32\..\Temp') = False
  376. PathIsFileSpec('C:\Windows\System32\..\Temp\FXSTIFFDebugLogFile.txt') = False
  377. PathIsFileSpec('C:\.\') = False
  378. PathIsFileSpec('C:\Windows\.\..\.\Temp') = False
  379. PathIsFileSpec('\\SERVER') = False
  380. PathIsFileSpec('\\SERVER\') = False
  381. PathIsFileSpec('\\SERVER\Share') = False
  382. PathIsFileSpec('\\SERVER\Share\') = False
  383. PathIsFileSpec('\\SERVER\Share\Folder') = False
  384. PathIsFileSpec('\\SERVER\Share\Folder\..\Temp') = False
  385. PathIsFileSpec('') = True
  386. PathIsFileSpec('..\test') = False
  387. PathIsFileSpec('.') = True
  388. PathIsFileSpec('.\Test') = False
  389. PathIsFileSpec('\.\test\') = False
  390. PathIsFileSpec('\test') = False
  391. PathIsFileSpec('%CD%') = True
  392. PathIsFileSpec('%TEMP%\SubTemp') = False
  393. PathIsFileSpec('C:\\Temp') = False
  394. PathIsFileSpec('C:\Windows\\\Temp') = False
  395. PathIsFileSpec('C:\Windows/Temp') = False
  396. PathIsFileSpec('C:\Windows/..\Temp') = False
  397. PathIsFileSpec('\\?\C:\Windows') = False
  398. PathIsFileSpec('\\?\C:\Windows\..\Temp\') = False
  399. PathIsFileSpec('\\?\C:\Windows/..\Temp') = False
  400. PathIsFileSpec('\\?\C:\Program Files\') = False
  401. PathIsFileSpec('\\?\C:\Progra~1\') = False
  402. PathIsFileSpec('.tmp') = True
  403. PathIsFileSpec('t ') = True
  404. PathIsFileSpec(' t') = True
  405. PathIsFileSpec('tmp.') = True
  406.  
  407. PathIsRelative('C:') = False
  408. PathIsRelative('D:') = False
  409. PathIsRelative('C:\') = False
  410. PathIsRelative('C:\C:\') = False
  411. PathIsRelative('C:\;C:\') = False
  412. PathIsRelative('C:\|C:\') = False
  413. PathIsRelative('C;C') = True
  414. PathIsRelative('C|C') = True
  415. PathIsRelative('C:\Windows') = False
  416. PathIsRelative('C:\Windows\') = False
  417. PathIsRelative('C:\Windows\notepad.exe') = False
  418. PathIsRelative('C:\NonExistendFolder') = False
  419. PathIsRelative('C:\Program Files\') = False
  420. PathIsRelative('C:\PROGRA~1\') = False
  421. PathIsRelative('C:\PROGRA~2\') = False
  422. PathIsRelative('.') = True
  423. PathIsRelative('..') = True
  424. PathIsRelative('..\Temp') = True
  425. PathIsRelative('C:Temp') = True
  426. PathIsRelative('C:..\Temp') = True
  427. PathIsRelative('C:\Windows\..\Temp') = False
  428. PathIsRelative('C:\..\Temp') = False
  429. PathIsRelative('C:\Windows\System32\..\Temp') = False
  430. PathIsRelative('C:\Windows\System32\..\Temp\FXSTIFFDebugLogFile.txt') = False
  431. PathIsRelative('C:\.\') = False
  432. PathIsRelative('C:\Windows\.\..\.\Temp') = False
  433. PathIsRelative('\\SERVER') = False
  434. PathIsRelative('\\SERVER\') = False
  435. PathIsRelative('\\SERVER\Share') = False
  436. PathIsRelative('\\SERVER\Share\') = False
  437. PathIsRelative('\\SERVER\Share\Folder') = False
  438. PathIsRelative('\\SERVER\Share\Folder\..\Temp') = False
  439. PathIsRelative('') = True
  440. PathIsRelative('..\test') = True
  441. PathIsRelative('.') = True
  442. PathIsRelative('.\Test') = True
  443. PathIsRelative('\.\test\') = False
  444. PathIsRelative('\test') = False
  445. PathIsRelative('%CD%') = True
  446. PathIsRelative('%TEMP%\SubTemp') = True
  447. PathIsRelative('C:\\Temp') = False
  448. PathIsRelative('C:\Windows\\\Temp') = False
  449. PathIsRelative('C:\Windows/Temp') = False
  450. PathIsRelative('C:\Windows/..\Temp') = False
  451. PathIsRelative('\\?\C:\Windows') = False
  452. PathIsRelative('\\?\C:\Windows\..\Temp\') = False
  453. PathIsRelative('\\?\C:\Windows/..\Temp') = False
  454. PathIsRelative('\\?\C:\Program Files\') = False
  455. PathIsRelative('\\?\C:\Progra~1\') = False
  456. PathIsRelative('.tmp') = True
  457. PathIsRelative('t ') = True
  458. PathIsRelative(' t') = True
  459. PathIsRelative('tmp.') = True
  460.  
  461. PathGetShortPath('C:\Program Files\') = 'C:\PROGRA~1\'
  462. PathGetShortPath('C:\PROGRA~1\') = 'C:\PROGRA~1\'
  463. PathGetShortPath('C:\PROGRA~2\') = 'C:\PROGRA~2\'
  464. PathGetShortPath('\\?\C:\Program Files\') = '\\?\C:\PROGRA~1\'
  465. PathGetShortPath('\\?\C:\Progra~1\') = '\\?\C:\Progra~1\'
  466.  
  467. PathGetLFNPath('C:\Program Files\') = 'C:\Program Files\'
  468. PathGetLFNPath('C:\PROGRA~1\') = 'C:\Program Files\'
  469. PathGetLFNPath('C:\PROGRA~2\') = 'C:\Program Files (x86)\'
  470. PathGetLFNPath('\\?\C:\Program Files\') = '\\?\C:\Program Files\'
  471. PathGetLFNPath('\\?\C:\Progra~1\') = '\\?\C:\Program Files\'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement