Modify

Opened 11 years ago

Closed 11 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: 3.3.12.0 Severity: None
Keywords: ftp Cc:

Description

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.

#AutoIt3Wrapper_outfile=mtu.exe
$hex = ftpreadflraw('ftp.xxx.com', '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)
_FTP_Close($ftpc)
Return $returnhex
EndFunc

Attachments (0)

Change History (2)

comment:1 by TouchOdeath, 11 years ago

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 by J-Paul Mesnage, 11 years ago

Resolution: No Bug
Status: newclosed

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.