Opened 17 years ago
Closed 17 years ago
#846 closed Feature Request (Completed)
UDF _PathFull( ) return path not correct
| Reported by: | txj | Owned by: | Valik |
|---|---|---|---|
| Milestone: | 3.3.1.0 | Component: | AutoIt |
| Version: | Severity: | None | |
| Keywords: | _PathFull | Cc: |
Description
code like this:
#include <file.au3>
Msgbox(0, "", _PathFull("d:dir1\dir2\dir3\filename.txt"))
this code display "d:\dir2\dir3\filename.txt", correct return value
should be "d:" & <current directory of drive d:> & "\dir1\dir2\dir3\filename.txt".
this bug exists in AutoIT 3.2.12.1, 3.3.0.0.
my operating system is Simplified Chinese Windows 2000 advanced server + sp4 + rollup1 + many hotfixes.
Attachments (0)
Change History (4)
follow-up: 2 comment:1 by , 17 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
comment:2 by , 17 years ago
Replying to Valik:
You passed in garbage, you received garbage. Function is working as designed. If you pass it something sensible then you will get something sensible back.
No bug.
path "d:dir1\dir2\dir3\filename.txt" is legal under command prompt.
test like this, suppose you have a batch file named test.bat, contents of test.bat is
@echo off
echo full path is: "%~f1"
now ,run cmd.exe to enter command prompt, suppose dir d:\myfile exists, type
C:\Documents and Settings\Administrator>cd d:\myfile
C:\Documents and Settings\Administrator>test.bat d:dir1\dir2\dir3\filename.txt
output is
C:\Documents and Settings\Administrator>full path is: "d:\myfile\dir1\dir2\dir3\filename.txt"
this is correct result.
maybe change source code of _FullPath( ) to handle this type of path is good.
sorry for my poor english.
comment:3 by , 17 years ago
| Resolution: | No Bug |
|---|---|
| Status: | closed → reopened |
| Type: | Bug → Feature Request |
| Version: | 3.3.0.0 |
comment:4 by , 17 years ago
| Milestone: | → 3.3.1.0 |
|---|---|
| Owner: | set to |
| Resolution: | → Completed |
| Status: | reopened → closed |
Added in version: 3.3.1.0

You passed in garbage, you received garbage. Function is working as designed. If you pass it something sensible then you will get something sensible back.
No bug.