473,467 Members | 1,615 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to rename a series of files within a PLMXML file and Windows folder?

1 New Member
I need to rename a series of files that are both referenced in a PLMXML file and are physically located in a Windows folder. I think that command "regx" or "regxPattern" might be able to do this.

Typical filenames (exported from a database vault) include:

_XvIAA8Trh781nA,EHEAQMHmh781nA_7101366.jt
_VWCAA8A8h781nA,FgHAQMyWh781nA_7101369.jt
_0NHAA4gZh781nA,ETBAQME$h781nA_7101173.jt

Always the same length alphanumeric prefix (location in vault) but not always the same ending number.

Sometimes files have a suffix:

_02AAQMY7h781nA,0bKAQMNah781nA_7101831-01.jt
_USPAQEyEh781nA,V8HAQM0ch781nA_7101657-001.jt
_E2JAQAIxh781nA,E6CAQAIxh781nA_7101406_ALF1.jt

We want all renamed to:

AFCC7101366.jt
AFCC7101369.jt
AFCC7101173.jt

and

AFCC7101831-01.jt
AFCC7101657-001.jt
AFCC7101406_ALF.jt

Is that possible?

Thanks in advance.

Roger.
Jan 27 '11 #1
1 1756
Guido Geurs
767 Recognized Expert Contributor
Just cut after the second underscore with:

NEWNAME = Mid(OLDNAME, instr(2,OLDNAME, "_") +1)
Jan 29 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Ralf Koms | last post by:
Hi, I would like to reference some other HTML files within an "main" HTML file (within the "header"), Something like this: <link rel="part1" href="file1.htm"> <link rel="part2"...
5
by: Jon Maz | last post by:
Hi there, I am experimenting with the FileSystemWatcher object. I have set the NotifyFilter as follows: myFileSystemWatcher.NotifyFilter = NotifyFilters.Security | NotifyFilters.CreationTime...
2
by: John Regan | last post by:
Hello All I am trying to find the owner of a file or folder on our network (Windows 2000 Server) using VB.Net and/or API. so I can search for Folders that don't follow our company's specified...
5
by: Rothariger | last post by:
Hello.... i want to know if its posible to rename multiple files like windows does.. example: file zzzzzzz.doc file asdasd.doc file esfsefse.doc
5
by: _DG | last post by:
At least when you've got any docs in .CHM format in the folder tree. If you drop a file called CSharpDocs.chm into a folder: \toplevel\C#\docs, you can open it, but it won't display. The #...
1
by: snicks | last post by:
I have a series of XLS files which I need to embed into a PowerPoint presentation on an IIS server. I’ll be using VB.NET. I’ve tried using an ASPOSE.PowerPoint control to do this and it does...
1
by: MM User | last post by:
Hi, I have a directory which I would like to search and list the latest file together with it date and time, I've found the following from w3schools for a particular file but do not know how to...
2
by: Kevin | last post by:
I'm trying to use a command button to open a windows folder related to the current record. The record has a Location field that contains the name of the windows folder, in the current directory...
6
by: Janice Hui | last post by:
I want to create a save function which allows the user to save all files within a folder. User needs to provide a folder name. Could anyone give me an idea how to do it?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.