社区
C#
帖子详情
怎么在路径里加一个反斜线?
xingxing_ruby
2008-07-08 09:46:05
问题代码如下
string filePath = defaultPath + folderPath + this.txtBox_fileName.Text;
想在folderPath后加一个反斜线,然后再+this.txtBox_fileName.Text;
怎么做到呢?
...全文
71
5
打赏
收藏
怎么在路径里加一个反斜线?
问题代码如下 string filePath = defaultPath + folderPath + this.txtBox_fileName.Text; 想在folderPath后加一个反斜线,然后再+this.txtBox_fileName.Text; 怎么做到呢?
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
xingxing_ruby
2008-07-09
打赏
举报
回复
string filePath = defaultPath + folderPath +@"\"+ this.txtBox_fileName.Text;
哈哈~~
一品梅
2008-07-08
打赏
举报
回复
string filePath = defaultPath +"\"+ folderPath +"\"+ this.txtBox_fileName.Text;
xxx.saveas(@filepath);
我姓区不姓区
2008-07-08
打赏
举报
回复
string filePath = defaultPath + folderPath + "\\" + this.txtBox_fileName.Text;
ericzhangbo1982111
2008-07-08
打赏
举报
回复
最后一个错了
string @filePath = defaultPath +"\"+ folderPath +"\"+ this.txtBox_fileName.Text;
ericzhangbo1982111
2008-07-08
打赏
举报
回复
string filePath = defaultPath +"/"+ folderPath +"/"+ this.txtBox_fileName.Text;
or
string filePath = defaultPath +"\\"+ folderPath +"\\"+ this.txtBox_fileName.Text;
or
string @filePath = defaultPath +"\\"+ folderPath +"\\"+ this.txtBox_fileName.Text;
如何在地址栏(title标签里)和收藏夹里 加上网站的标志ICO、LOGO图片
第一步:首先你必须要制作
一个
看起来既清楚又容易辨识的.ico格式的小图片。 我们将图标的大小定义为16x16 像素。此外在制作图形文件的时候,你可能需要把色盘设定成只使用标准的 16 色 Windows 色盘,这样做出来...
【前端修炼场】— 在页面里面放图片,你学废了么?
承接上一篇文章,我们最后介绍了自定义列表,其中自定义列表可以放入图片和文字,那么我们的图片如何导入到我们的页面呢?接下来我将为诸位道友详细介绍一下!话不多说,开干!在此篇章,已经给大家介绍了一下图片...
VBS教程
就是说大部分的计算机程序设计教程开篇入门都是编写
一个
小程序,执行这个程序的结果就是在计算机的屏幕上或者dos窗口中显示一行文字:Hello World!好了,我们开始吧。 打开你的“记事本”程序,在编辑窗口填写...
总结——有关Visual C#.NET 中设计的各类@符号的使用
开始 进入.NET 的学习,我决定放弃C++(也不是说放弃,大概以后还是会用到的吧 >_ 一 字符串中的用法 字符@表示,其后的字符串是个“逐字字符串”(verbatim string)。 @只能对字符串常量作用。1.文件
路径
...
shell中常用的特殊符号
在shell中常用的特殊符号罗列如下: # ; ;; . , / \ 'string'| ! $ ${} $? $$ $* "string"* ** ? : ^ $# $@ `comman
C#
111,092
社区成员
642,554
社区内容
发帖
与我相关
我的任务
C#
.NET技术 C#
复制链接
扫一扫
分享
社区描述
.NET技术 C#
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧
+ 用AI写文章