Modify

Opened 10 years ago

Closed 10 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)

comment:1 follow-up: Changed 10 years ago by Valik

  • Resolution set to No Bug
  • Status changed from new to closed

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.

comment:2 in reply to: ↑ 1 Changed 10 years ago by anonymous

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 Changed 10 years ago by Valik

  • Resolution No Bug deleted
  • Status changed from closed to reopened
  • Type changed from Bug to Feature Request
  • Version 3.3.0.0 deleted

comment:4 Changed 10 years ago by Valik

  • Milestone set to 3.3.1.0
  • Owner set to Valik
  • Resolution set to Completed
  • Status changed from reopened to closed

Added in version: 3.3.1.0

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain Valik.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.