![]() It's not a technique specific to programming but it is critical to programming, so the sooner you apply it, the better. This is basically problem solving 101 - divide and conquer. You then just need to combine the solutions into one. If you break your process down into those steps and research each one individually though, you're far more likely to find help for each of them. Set Upload Server.CreateObject(Persits.Upload.1) Count Upload.Save(d:cmsuploadcimg) for each File in upload.Files. The more steps in your process, the less likely you'll find all of them implemented in the same place. ![]() The reason that beginners so often find it hard to find information is because they expect to find a turnkey solution for a multi-step process. Finally, File.Move or File.MoveTo will do the renaming. You can then use String.Substring as suggested to get the two parts of the file name that you need to retain and combine them. ![]() ![]() The Path.GetFileName method or FileInfo.Name property can help you there. The next part is to get just the file name. Directory.GetFiles or DirectoryInfo.GetFiles can help you there. The first part is to get all the files in the folder. Ah, I just realised that you said that you found that code on the web, so maybe you are using VB.NET and that code is basically useless to you as it isn't VB.NET.Īs with any problem, you should break it down into parts.
0 Comments
Leave a Reply. |