My Computer Forum Computer Science Forum

Go Back   My Computer Forum > Computer Science Forum > Computer Science

Computer Science Computer Science is the scientific and practical approach to computation and its applications.


Reply
 
LinkBack Thread Tools Display Modes
December 17th, 2012, 10:04 AM   #1
 
Joined: Dec 2012
Posts: 1
Moving files/adding text to files (VB/*.bat)

Hi, I'm new here, this in my first ever post.

I would like to know if the was a way to move new files to a certain folder, and add text to a file that can be opened in Notepad. Using Visual Basics 2010 or a Batch (*bat) file or similar.

For example:

"*.x" files go to a folder called "xfiles"
".xli" files go to a folder called "RTR"
And since I might have 2 "*.xli" files that are the same, I need #1's text copied into #2, but only if that .xli does not exist in that folder

Example:

>RTR(Folder)
>> Scenes(Folder)
>>> xfiles(Folder)
>a.Xil(File)

>New Folder(Folder)
>>a.xli(File)
>>a.x(File)
>>a.wav(File)

Now "a.xli" needs to go to "RTR", but now there is already one there?

the one in "RTR" reads "12"
and the one in "New Folder" reads "11"

now, if that is the case, I want it to then become one file and read "12"
11

or if the "a.xli" file does not exist in the "RTR" folder then one "a.xli" file in "New folder" must just be moved in the "RTR" folder.

and for the rest? I just need them moved to the other folders ("a.xli" to "xfiles" and "a.wav" to "RTR")




The reason I am asking for such a program, is because I play Rule The Rail a lot, and I install a lot of mods, so it will be more convenient to have such a program, than to switch between the folders and programs so often, just to get 1 item in the game.
Doug4347 is offline  
 

My Computer Forum is free to register and we welcome everyone!

Reply

  My Computer Forum > Computer Science Forum > Computer Science

Tags
files, files or adding, moving, text, vb or bat



Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert OpenOffice files to Excel files julien Computer Software 2 October 4th, 2011 10:53 PM
.bat files not apearing on comp when i save with notepad?? cyber snake Tech Support 1 May 6th, 2010 02:10 AM
Reading formatted text in C# milin Programming 4 December 15th, 2008 05:03 AM
Visual Studio -- text boxes CRGreathouse Programming 3 December 9th, 2008 12:50 AM





Copyright © 2018 My Computer Forum Forum. All rights reserved.