主题:  为什么不能指定自己的路径呢??

LER

职务:普通成员
等级:1
金币:0.0
发贴:4
注册:2002/5/26 21:49:21
#12002/5/27 20:25:53
我打个比方吧!我想一点击按钮就进入:光驱/photoshop/steup.exe
该怎么做呢?



满眼金星

职务:普通成员
等级:2
金币:1.0
发贴:441
注册:2000/12/15 21:17:37
#22002/5/28 0:07:09
搜索光驱
然后:
盘符+文件的路径(就是\photoshop\setup.exe)
然后:
应该就是这样吧...........



odb

职务:普通成员
等级:1
金币:0.0
发贴:61
注册:2002/5/8 16:54:32
#32002/5/28 19:25:31
相对路径吧!



非的

职务:普通成员
等级:1
金币:0.0
发贴:49
注册:2000/12/24 20:34:27
#42002/5/28 19:47:18
on testFile theFileName
repeat with i=67 to 90
p=false
global myFile
if objectP (myFile) then
nothing
else
set myfile=new(xtra "fileio")
end if
drive=numtochar(i)
mypath=string(drive&":\"&thefilename)

openFile myFile, mypath,0
set x to readFile(myFile)
closeFile myFile
if voidp(x) then
nothing
else
return x
exit
end if

end repeat
end
on preparemovie
put testfile("love.txt")
end

用这个程序可以判断光驱在哪个盘