Current location: Hot Scripts Forums » Programming Languages » Visual Basic » Need Help Making A Copy File-folder App...!!!


Need Help Making A Copy File-folder App...!!!

Reply
  #1 (permalink)  
Old 03-29-07, 12:48 PM
deviouz deviouz is offline
New Member
 
Join Date: Mar 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Need Help Making A Copy File-folder App...!!!

can sumone please help me code an app im trying to make..
I want this app to check all Removable Storage drives { E: F: G: H: I: J: } and C:\RECYCLER\ all at the same time in a constant
infinite loop for files & folders, and then copy-mirror all of them including the drives subfolders & files & folder tree

structure over to a corresponding drive folder in a destination folder located at C:\0\1\

BUt i also want this app to rename files it tries to copy over if both source and destination files have the same name, so

nothing in the destination folder ever gets overwritten or deleted..

Whats the easiest way to do this.



I tried to make a Quick Batch App that used "HSTART" & "ROBOCOPY"
but i couldn't seem to find a code or switch for the app to rename files it tries to copy over if both source and destination

files have the same name..



{>BATCH CODE <}

:UP

tasklist | find /i "R-copy-1.exe" && goto SKIP-1
start %MYFILES%\hstart.exe /nowindow "%MYFILES%\R-copy-1.exe C:\RECYCLER C:\0\1\REC /XX /mir /r:0"
:SKIP-1

tasklist | find /i "R-copy-2.exe" && goto SKIP-2
start %MYFILES%\hstart.exe /nowindow "%MYFILES%\R-copy-2.exe E: C:\0\1\E /XX /mir /r:0"
:SKIP-2

tasklist | find /i "R-copy-3.exe" && goto SKIP-3
start %MYFILES%\hstart.exe /nowindow "%MYFILES%\R-copy-3.exe F: C:\0\1\F /XX /mir /r:0"
:SKIP-3

tasklist | find /i "R-copy-4.exe" && goto SKIP-4
start %MYFILES%\hstart.exe /nowindow "%MYFILES%\R-copy-4.exe G: C:\0\1\G /XX /mir /r:0"
:SKIP-4

tasklist | find /i "R-copy-5.exe" && goto SKIP-5
start %MYFILES%\hstart.exe /nowindow "%MYFILES%\R-copy-5.exe H: C:\0\1\H /XX /mir /r:0"
:SKIP-5

tasklist | find /i "R-copy-6.exe" && goto SKIP-6
start %MYFILES%\hstart.exe /nowindow "%MYFILES%\R-copy-6.exe I: C:\0\1\I /XX /mir /r:0"
:SKIP-6

tasklist | find /i "R-copy-7.exe" && goto SKIP-7
start %MYFILES%\hstart.exe /nowindow "%MYFILES%\R-copy-7.exe J: C:\0\1\J /XX /mir /r:0"
:SKIP-7

cls
GOTO UP
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to clear a folder if file exist yamu PHP 2 01-10-07 06:27 PM
Content of any file - Copy to any file Midgard PHP 2 08-31-06 03:52 AM
showing all pages on a folder on index file. itssami PHP 17 08-13-06 03:21 AM
Upload a file to a fix web folder of a website without using FTP software sujata_ghosh Perl 4 05-10-06 09:10 AM
Upload file to table so ONLY files tied to primary key are displayed in record? grafixDummy PHP 4 12-20-03 04:28 PM


All times are GMT -5. The time now is 01:17 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.