|
主题: 这段lingo该怎样写呀?
|
 HIFI_5d
职务:普通成员
等级:1
金币:0.0
发贴:3
注册:2002/7/5 23:02:44
|
#12002/8/19 12:26:18
在光盘上运行director制作的文件,其中有一个按钮点击时执行下列动作: 一、检查硬盘c:\mm\目录中是否有mm.exe 文件 二、如果有就从硬盘上运行mm.exe文件 三、如果没有则在c盘上建立mm目录,并将光盘tt目录下的tt.exe文件拷贝到 c:\mm\下 请问各位高手,这段lingo该怎样写呀?
|
 D计划-混沌
职务:管理员
等级:6
金币:15.2
发贴:3528
注册:2007/4/9 9:48:37
|
#22002/8/19 12:59:47
set zqchekfile=getnettext("c:\mm\mm.exe") if neterror(zqchektfile)="ok" then open ("c:\mm\mm.exe") else downLoadNetThing("the moviepath&"tt/mm.exe", "c:\mm\mm.exe") end if
|
 sunangel_5d
职务:普通成员
等级:1
金币:0.0
发贴:85
注册:2002/8/6 12:47:45
|
#32002/8/19 13:41:04
◆→◎版主劳你看一下!!!
我试了一下,好像只是打开了可执行文件,并没有执行拷贝行为!
我试的例子为:加一个按钮,在上加上行为 on mousedown set zqchekfile=getnettext("c:\zgm.exe") put zqchekfile if neterror(zqchekfile)="ok" then open "c:\zgm.exe" else alert("copy file!") downLoadNetThing("the moviepath"&"\zgm.exe","c:\zgm.exe" ) end if end
"c:\"目录下没有zgm.exe,点击按钮,发现zgm.exe打开,但c:\下并没有文件zgm.exe!
|
 斗豆鱼
职务:普通成员
等级:1
金币:0.0
发贴:40
注册:2002/8/19 15:47:46
|
#42002/8/19 15:59:37
多个嘴“the moviepath”是你的文件路径。
|
 sunangel_5d
职务:普通成员
等级:1
金币:0.0
发贴:85
注册:2002/8/6 12:47:45
|
#52002/8/20 12:38:43
the moviepath是文件路径。
|
 luvxf
职务:普通成员
等级:1
金币:0.0
发贴:11
注册:2000/12/18 20:27:35
|
#62002/8/26 11:40:57
the moviepath 不要加引号
|