1樓:
url = "url")取得網頁位址。
strurl = split(url,"/for i=1 to ubound(strurl)webname = strurl(i)
)end if
這是我的笨方法,你試試。
asp 獲取檔名的同時獲取檔案字尾名
2樓:匿名使用者
asp獲取檔名和副檔名的函式**<%
function getfilename(text)text = left(text,instrrev(fl,".")-1)
getfilename = textend functionfunction getextn(text)
text = left(text,instr(text,".")-1)
getextn = text
end function
這樣就可以了,獲得就是 .副檔名。
lname="文字欄位名字"
la=split(lname,"/")
num=ubound(la)
lb=split(la(num),".")num2=ubound(lb)
"&lb(num2))
這樣獲得的是整個檔名。
a="c:/windows/windows/windows/"
b=split(a,"/")
a=ubound(b)
asp擷取檔名的字尾名
3樓:一騎當後
'獲取檔名(不含副檔名)
function getfilename(text)text = left(text,instrrev(text,".")-1)
getfilename = text
end function
獲取副檔名。
function getextn(text)text = left(text,instr(text,".")-1)
getextn = text
end function
4樓:匿名使用者
fullpath = ""
f = mid(fullpath,instrrev(fullpath, ".")+1)
這樣就能獲取,任意字尾。
instrrev獲取那個點最後出現的位置,然後從這個位置加1的位置開始擷取字串,就是字尾名。
asp如何獲取檔案域中的檔案路徑及檔名。。
5樓:sxzy灬丨小柒
你理解的不對。
是相對路徑轉絕對路徑的方法。
好比string str = ""我的專案"\");
如何獲取當前正在執行的asp檔名?
6樓:紅色兒
你可以用乙個if判斷的語句呀 判斷當你執行的內容就在內容裡面調出裡要顯示的內容呀。
asp中怎麼獲取剛才上傳的檔案的檔名?
7樓:網友
dim arr(3)後面加一行s=""
後面加一行。
s=s & "/upfile/"&filename最後一句的 改成""
ASP上傳檔案怎麼樣得到檔名 去掉字尾的那部分
post.asp 做為發表頁,其中引用choose.asp作 上傳 choose.asp 提供瀏覽選擇 提交資料給upload.asp upload.asp中的asp程式負責上傳 writepost.asp 負責將文字和 名一起寫入資料庫 1 filename 上傳後獲得的檔名 然後upload.a...
asp中怎麼上傳檔案
1全部post.asp 做為發表頁,其中引用choose.asp作 上傳 choose.asp 提供瀏覽選擇 提交資料給upload.asp upload.asp中的asp程式負責上傳 writepost.asp 負責將文字和 名一起寫入資料庫 1 filename 上傳後獲得的檔名 然後uploa...
檔名或路徑無效,word檔名或路徑無效
方法1.用windows自帶的 寫字板 程式,開啟該word文件 開啟寫字板 開始 所有程式 附件 寫字板 在寫字板裡 檔案 開啟 選擇要word文件路徑與檔案型別,開啟文件。方法2.用word自帶的修復功能。修復前請保留副本 在word裡 檔案 開啟 在出現的對話方塊裡,選中需要修復的word文件...