Modify

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#1374 closed Bug (No Bug)

FileGetShortName returns wrong result on Win7

Reported by: KaFu Owned by:
Milestone: Component: AutoIt
Version: 3.3.0.0 Severity: None
Keywords: Cc:

Description

$sFilename = "c:\test.par2"
$output = $sFilename & @crlf & FileGetShortName($sFilename)
ConsoleWrite($output & @crlf)

Returns

c:\test.par2
c:\TEST~1.PAR

on Win7. On XP same code returns

c:\test.par2
c:\test.par2

as expected.

Attachments (0)

Change History (4)

comment:1 by Jos, 16 years ago

When the file exists it returns the following on WinXP SP3:
c:\test.par2
c:\TEST~1.PAR

When the file doesn't exists it will return the same as the input but the @error = 1

Jos

comment:2 by KaFu, 16 years ago

Thanks for the Test :), maybe it just worked for me on XP because I tested it in XP VM Mode and didn't check @error... Yep, that's it, im XP-VM Mode @error is 1.

comment:3 by Jos, 16 years ago

Resolution: No Bug
Status: newclosed

comment:4 by KaFu, 16 years ago

Me bad :(, just did not associate .par with the exe-file on my freshly installed machine... thanks and closed.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.