Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can path be used with filename in Replace function in VB script.
sName = Replace(oFile.Name, "Inter", "InterCA")

I want to specify the path of the file name.like D:\VB\a.txt
Posted
Updated 28-Sep-10 1:29am
v2

You didn't try, did you?

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


gives


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


:)
 
Share this answer
 
http://www.ureader.com/msg/167511057.aspx[^]

thanks,
Karthikeyan, bangalore.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900