在ASP中获取文件名 [英] Getting filename in ASP

查看:75
本文介绍了在ASP中获取文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hiya,

我正在寻找一个将当前文件作为字符串返回的命令.我使用的上下文是一个try catch块,如果出现错误,代码将通过电子邮件将电子邮件发送给管理员.

我想要的是它以字符串形式返回文件名(和路径).

Hiya,

I am looking for a command which returns the current file as a string. The context in which I am using this is for a try catch block where the code emails the administrator if there has been an error.

What I want is for it to return the filename (and path) as a string.

Any help would be fantastic!

推荐答案

请参阅此链接,
http://msdn.microsoft.com/zh-cn/library/system.io.path.getfilename%28v = vs.71%29.aspx [
Refer this link,
http://msdn.microsoft.com/en-us/library/system.io.path.getfilename%28v=vs.71%29.aspx[^]


这篇关于在ASP中获取文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆