在VB脚本中替换 [英] Replace in VB Script

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

问题描述

可以在VB脚本的替换功能中将路径与文件名一起使用.

Can path be used with filename in Replace function in VB script.

sName = Replace(oFile.Name, "Inter", "InterCA")


我想指定文件名的路径.例如D:\ VB \ a.txt


I want to specify the path of the file name.like D:\VB\a.txt

推荐答案

您没有尝试过,是吗?

例如
You didn''t try, did you?

For instance
sName = Replace("D:\VB\Interpool.txt", "Inter", "InterCA")







gives


sName ="D:\ VB \ InterCApool.txt"

sName="D:\VB\InterCApool.txt"



:)



:)


http://www.ureader.com/msg/167511057.aspx [^ ]

谢谢,
班加罗尔Karthikeyan.
http://www.ureader.com/msg/167511057.aspx[^]

thanks,
Karthikeyan, bangalore.


这篇关于在VB脚本中替换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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