Virtual Copy, the Bubble (VCB)

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Cacrito
Posts: 5
Joined: 23 Oct 2013 04:37

Virtual Copy, the Bubble (VCB)

#1 Post by Cacrito » 01 Dec 2013 00:17

Virtual Copy, the Bubble (VCB)

Scenario
If you have your files copied across several HDDs many times you will find yourself in a situation where you want to check whether you have a specific file(s) and in which HDD. You may need to connect several HDDs and search, or worse you might have left one of the HDD at work and your at home

Solution
you find a good cataloging software or explore your own possibilities

Virtual Copy, the Bubble(VCB) by Cacrito V1.0
Why Bubble? it is visible, negiligible weight and it has almost no content, just air!

Code

Code: Select all

@echo off
setlocal enabledelayedexpansion

set SOURCE_DIR=D:\Newfolder
set DEST_DIR=D:\Newfolderblank
set FILENAMES_TO_COPY=*.*

for /R "%SOURCE_DIR%" %%F IN (%FILENAMES_TO_COPY%) do (
    if exist "%%F" (
       set FILE_DIR=%%~dpF
   set FILE=%%~nxF
       set FILE_INTERMEDIATE_DIR=!FILE_DIR:%SOURCE_DIR%=!
       copy nul "%DEST_DIR%\!FILE!"
    )
)
pause


It is intended to copy directory structure with files in it without file content. So you can keep a catalogue so all your files. I could not get the directory structure right so foxidrive helped me fix it.

Thank you foxidrive

Cacrito
Posts: 5
Joined: 23 Oct 2013 04:37

Name change:%Virtual Copy, the Bubble(VCB) by Cacrito V1.1%=

#2 Post by Cacrito » 01 Dec 2013 00:18

VCB V1.1

Define
"VCB" is the programe

"VCB catalog" is the bubble directory structure with no-content files created by VCB.

Cacrito
Posts: 5
Joined: 23 Oct 2013 04:37

VCB V1.1

#3 Post by Cacrito » 01 Dec 2013 00:19

Here is the fixed code by foxidrive
He got the directory structure right!

Code: Select all

@echo off
setlocal enabledelayedexpansion

set "SOURCE_DIR=D:\Newfolder"
set "DEST_DIR=D:\Newfolderblank"
set FILENAMES_TO_COPY=*

for /R "%SOURCE_DIR%" %%F IN (%FILENAMES_TO_COPY%) do (
set "FILE_DIR=%%~dpF"
set "FILE=%%~nxF"
set "DEST_PATH=!FILE_DIR:%SOURCE_DIR%=%DEST_DIR%!"
md "!DEST_PATH!" 2>nul
type nul > "!DEST_PATH!!FILE!"
)
pause

Cacrito
Posts: 5
Joined: 23 Oct 2013 04:37

VCB 1.1

#4 Post by Cacrito » 01 Dec 2013 00:20

Pros:
VCB is open source, everyone can use and improve it freely.
VCB is tiny (less than 1kb) as a bat file.
No need to install software, no registration needed.
It do not need other periferal software.
It has insanly low hardware requirements.
VCB catalog just regular directories with files in it; no software it needed to browse or search it.
VCB catalog is tiny as files have 0 byte.
VCB catalog is compatible with FAT, NTFS, EXT...
VCB catalog is compatible with Mobile Devices; Smart Phones, Tablets...
VCB catalog is compatible with all Operating Systems Windows, Mac, Android, Linux..



Cons:
FAT32 can hold upto 268,435,437 files & 65,534 directories depending on file/folder name length.
VCB catalog holds no meta data to the files:
Date of creation & modification of files and folders unavailable.
Madia and Document files lack preview.
Applications files lack Icons.
.bat file has to be manually edited each time if source or destination directory changes.
If destination directory is located inside source directory VCB goes in a continuous loop. This happens if we try to copy an entire drive to a folder that exists in the drive itself.

Cacrito
Posts: 5
Joined: 23 Oct 2013 04:37

Re: Virtual Copy, the Bubble (VCB)

#5 Post by Cacrito » 01 Dec 2013 00:21

Suggestions:
VCB catalog can be archived in zip folder and may be viewed in android but I am not sure if the search function will work.
It would be convenient if we add a pop-up function for changing directories.

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: Virtual Copy, the Bubble (VCB)

#6 Post by Ed Dyreen » 07 Dec 2013 21:41

user subscribes on 23 Oct 2013
user makes it's first post 2 months later and makes 5 sequentual posts at once with a one minute gap.
user talks about a user helping, but the user never did.
user advertises.

Virtual Copy, a bubble of baked air :?:

looks like spam to me.

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: Virtual Copy, the Bubble (VCB)

#7 Post by Ed Dyreen » 08 Dec 2013 07:07

Alright then,

Cacrito99 was removed and Cacrito reactivated, my apologies.

Post Reply