Opened 9 years ago

Closed 9 years ago

#2999 closed Bug (No Bug)

FTP read fails because of exe file name and the path location

Reported by: TouchOdeath Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: ftp Cc:


This is on Windows 7 Ultimate x64, if the file is named mtu.exe and it is placed in @StartupDir for me thats (C:\Users\TouchOdeath\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup). Then that function will return 0. If you simply rename the file to test.exe, then it will work. If mtu.exe is placed on c:\ it works fine. For reference, I do know that windows does look for specific file names and executes special code for it, I don't know if this is one of those instance or not.

$hex = ftpreadflraw('', 'user', 'pass', 'file.txt')

func ftpreadflraw($server, $usern, $pass, $flnm)
$ftpc = _FTP_Connect(_FTP_Open(''),$server,$usern,$pass)
$flsz = _FTP_FileGetSize($ftpc,$flnm)
$ftpflo = _FTP_FileOpen($ftpc,$flnm)
$returnhex = _FTP_FileRead($ftpflo,$flsz)
Return $returnhex

Attachments (0)

Change History (2)

comment:1 Changed 9 years ago by TouchOdeath

Please disregard.. I had code that added a firewall block rule.. which makes perfect sense why renaming the filename was screwing me. woops

comment:2 Changed 9 years ago by Jpm

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

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

as closed The ticket will remain with no owner.

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

Note: See TracTickets for help on using tickets.