473,799 Members | 3,148 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

File movement

3 New Member
I am a novice and need lots of help - using VB 2005.
I receive many files daily from an automated center. These files are autmatically downloaded into a subfolder on my computer.
I need to move each file from its subfolder and consolidate the files into a single folder.
Everytime a file is downloaded, it is placed into a subfolder with a unique name. Each subfolder starts and ends with the same name but has a different middle section (i.e. es.edi.ro@ABCom pany.com 108620199 File(s) from ABCompany. The second subfolder is named: es.edi.ro@ABCom pany.com 108620469 File(s) from ABCompany).
Again, each subfolder holds one file and each file is of the same type as a trailing name RES (i.e. HSS_NHQ_2006120 9_KHELLAQHPC-011461.RES).

I need to move these RES files from their subfolder into a single folder.

Can someone guide me as to how this may be done - either as a batch file or some type of automation. Currently I have to manually move each individual file.

Thank you
Dec 11 '06 #1
2 1511
willakawill
1,646 Top Contributor
I am a novice and need lots of help - using VB 2005.
I receive many files daily from an automated center. These files are autmatically downloaded into a subfolder on my computer.
I need to move each file from its subfolder and consolidate the files into a single folder.
Everytime a file is downloaded, it is placed into a subfolder with a unique name. Each subfolder starts and ends with the same name but has a different middle section (i.e. es.edi.ro@ABCom pany.com 108620199 File(s) from ABCompany. The second subfolder is named: es.edi.ro@ABCom pany.com 108620469 File(s) from ABCompany).
Again, each subfolder holds one file and each file is of the same type as a trailing name RES (i.e. HSS_NHQ_2006120 9_KHELLAQHPC-011461.RES).

I need to move these RES files from their subfolder into a single folder.

Can someone guide me as to how this may be done - either as a batch file or some type of automation. Currently I have to manually move each individual file.

Thank you
using filesystemobjec t you can create a folder object and use a for each...loop in the folders collection
Dec 11 '06 #2
hkhella
3 New Member
using filesystemobjec t you can create a folder object and use a for each...loop in the folders collection
Would you be so kind as to provide me with some additional clarification to your suggestion. Thank you once more.
Dec 12 '06 #3

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

Similar topics

2
6947
by: Robin Shuff | last post by:
Hi, I'm trying to limit the movement of the mouse cursor in using a VB app. The idea is to stop the cursor straying on to the second monitor of a dual screen set-up (i.e. a projector) while this program is running. I've found and have been working with Knowledge Base Article 179192 (http://support.microsoft.com/default.aspx?scid=kb;en-us;179192) which limits the mouse movement to inside a form, but I'd like to adapt this to be limited...
1
1809
by: Rocky A | last post by:
I don't remember ever reading about this in any of the "how to" books I've got or I wouldn't bother you guys (honest, I'm not being lazy here.....OK maybe just a little, but you guys are SOOOO good) I have a form along with it's multiple sub forms that I don't need or want to display the record movement bar that automatically appears at the bottom. Is this something I can set at design time, and if so how?
1
19245
by: Benny Raymond | last post by:
In my attempt to make a macro recording program where i can then playback mouse movements i'm running into a big problem: I'm trying to simulate the movement of the mouse to a point on the screen. With my current code the mouse is only moving in the X direction and not in the Y direction (however my debug line is telling me that it's trying to move in the Y as well). I've read everything I could find online, tried some hacky ways of...
2
1551
by: Skwerl | last post by:
We just installed a new SAN from Sun and need to migrate several terrabytes over to it from our Windows servers. We've found that drag-and-drop copying files using Explorer is going to be very slow and I haven't found any software designed specifically for the purpose of fast file movement. I could whip up a simple .Net app to traverse a directory tree, moving each file to the new drives one-by-one, but would this be any faster than...
5
3868
by: Amar Prakash Tripaithi | last post by:
Hi, Is there exists some function for controlling the cursor movement in C++. With control of cursor movement I mean, is there exists any function that let me to relocate the cursor as per coordinate values given by the user. Amar Prakash Tripathi
10
2098
by: connyledin | last post by:
Im trying to create a version of the game Wumpus. Mine is called Belzebub. But im STUCK! And its due tuesday 2 maj. Im panicing! Can some one help me?? here is the file: http://esnips.com/webfolder/b71bfe95-d363-4dd3-bfad-39999a9e36d0 What i have the biggest problems with now is between line 8 and 23. How i can move the character trough the game. Other parts of the game that have with the movement to do is between line 83-114 and...
1
4553
by: sircool | last post by:
hi guys, the problemm is that you have a horse on the chess board.You should write a function that calculate the horse's movement.I mean how many movement later you can go every point on the board.I wrote that program and wanted to share with you... I am Turkish so I named functions in Turkish.So it can make the source misunderstable sorry for that //--------------------------------------------------------------------------- ...
4
6979
by: mike | last post by:
I have the opportunity to rescue a project that uses a mouse to sense the relative position of a machine. The hardware is built...just needs to be programmed. Stop snickering!!! I didn't do it...I just gotta fix it. I need to make some calculations on the measurements and VB6 is my language. Yes, the system mouse will corrupt the measurement, but it's an auditing function and that's acceptable.
5
2333
by: hurricane_number_one | last post by:
I am creating a simple server application, that will listen for incoming mouse coordinates and then move the mouse accordingly. So basically it's like a very simple VNC server without and screen display. I have this basic part working. The problem is that response time is really bad. It seems like the server is not receiving the data fast enough to be able to move the mouse so that it appears to be in sync with the movement on the client...
0
9688
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9544
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10490
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10259
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9077
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6809
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5467
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5589
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4145
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.