Remove Text fro String
Remove Text fro String
(OP)
When I convert files from one design software to another the file name retains the old extension only with the "." replaced with and "_". Is there a way to search the file name for and remove specified text?
Converted file = XXXXX-XXXX_CATPart.prt or
XXXXX-XXXX_CATProduct.prt
Needs to be XXXXX-XXXX.prt
The character count from the left varies depending on the file name.
Thanks,
Kevin
Converted file = XXXXX-XXXX_CATPart.prt or
XXXXX-XXXX_CATProduct.prt
Needs to be XXXXX-XXXX.prt
The character count from the left varies depending on the file name.
Thanks,
Kevin
RE: Remove Text fro String
If VB.net, I'd suggest the string.Replace method.
http://msdn.microsoft.com/en-us/library/fk49wtc1%2...
http://www.dotnetperls.com/replace-vbnet
www.nxjournaling.com
RE: Remove Text fro String
Kevin
RE: Remove Text fro String
www.nxjournaling.com
RE: Remove Text fro String
I am currently cloning and modifying the log file to change the names. My hope is to automate it to try to eliminate human error.
RE: Remove Text fro String
NAME XXXXX-XXXX_CATProduct.prt AS "XXXXX-XXXX.prt"
I hate Windowz 8!!!!