抱歉,如果这是一个重复的问题。我查看了其他线程,但是虽然还有其他类似的问题,但似乎没有一个问题能够真正解决这个问题:
我有 ftp 服务器上所需的两个文件。如果我使用 filezilla 将它们拖放到文件夹中,我可以按预期运行这些文件。如果我通过命令行 ftp(Windows 7 中的“开箱即用”ftp)获取文件,图标看起来会有所不同。当我拖放它时,它没有漂亮的红色“Adobe Air”图标,而是一个通用的 Windows 类型图标,在图标的底角有一个小盾牌和一个小挂锁。我检查了文件权限,但这些似乎是相同的。一件绝对不同的事情是,当我使用 Filezilla 拖放文件时,它似乎仍然具有 adobe 的数字签名(它是 adobe air 安装程序 exe 文件)。当我使用命令行 ftp 时,似乎由于某种原因丢失了数字签名。但我不确定这是否真的是问题所在。哦,即使我使用以管理员身份运行,命令行 ftp 版本也不会运行。
我使用的实际 ftp 命令是:
ftp -s:myfile.txt ftp.myftpsite.com
其中 myfile.txt 包含以下内容:
[电子邮件受保护]
获取 AdobeAIRInstaller.exe C:\AdobeAIRInstaller.exe
哦
,这是一个问题的原因是,当我拖放 SweepsCoachClient.air 文件时,它运行并安装得很好。当我使用命令行 ftp 时,它无法运行和安装。
提前致谢!
Sorry if this is a repeat question. I've looked at other threads, but while there are other questions that are similar, none appear to truly address this question:
I have the two files that are needed on an ftp server. If I use filezilla to drag and drop them into a folder, I can run the files as expected. If I get the files through command line ftp ("out of the box" ftp in Windows 7), the icon looks different. Instead of the nice pretty red "Adobe Air" icon it has when I drag and drop it, it has a generic windows type icon with a little shield and a little padlock in the bottom corners of the icon. I checked the file permissions, but those appear to be the same. One thing that is definitely different is that when I drag and drop the file w/ Filezilla, it appears to still have a digital signature from adobe (it is the adobe air installer exe file). When I use the command line ftp, it looks like it loses the digital sig for some reason. I'm not sure if that is truly the problem though. Oh, and the command line ftp'd version does not run even if I use run it as admin.
The actual ftp command I'm using is:
ftp -s:myfile.txt ftp.myftpsite.com
where myfile.txt contains the following:
[email protected]
get AdobeAIRInstaller.exe C:\AdobeAIRInstaller.exe
quit
Oh, and the reason this is a problem is because when I drag and drop the SweepsCoachClient.air file, it runs and installs fine. When I use command line ftp, it fails to run and install.
Thanks in advance!
发布评论
评论(1)
将“二进制”命令添加到您的脚本中 - 看起来文件是以文本模式传输的。
Add "binary" command to your script - it looks like the file is transferred in text mode.