Here is my attempt to update the good script already created before.....
I have included a zip file from my website that has 3 file.
file 1> autorun.inf
points to a g6lite icon stored on the root of the g6lite
labels the drive in windows as G6 Lite
adds a shell command to windows to backup the g6lite, excluding certain file types.
file2> g6lite.ico
icon file of g6lite for pretty
file3> G6LiteBackup.bat
Creates a directory... default is c:\G6litebackup
moves to that directory
creates an exclude list in excluded.txt in that same folder
files currently excluded are .nds .gba autorun.inf g6lite.ico and the g6litebackup.bat
begins xcopy of whole g6lite excluding the file types and files above
creates a file called timestamp.txt in the c:\G6litebackup folder with a stamp of date and time
deletes the excluded.txt file on completion.
The zip file is 123kb, it is large due to the icon i created that supports all pixel ranges from 6x6 to 256x256
i will post the code now.... you may alter the "i:" to whatever your g6lite comes up as....
you may change the folder or folder path... You could use swiches like "c:\documents and settings\%username&\Desktop"
HOW TO INSTALL
1. Alter the g6litebackup.bat to the way you like.
2. Copy all three files to root of g6lite
3. Right click and goto properties of each file and give them the hidden attribute.
4. Hit refresh to see that they are now hidden.
HOW TO RUN THIS????
1. Insert g6lite with dongle into usb port.
2. Right click on g6lite drive
3. Hit BackMeUP
that is it.
WHY DID I DO THE SHELL ADDON, as opposed to autorun on connect?
I think it would be very annoying everytime to not be able to double click on the drive to get into it. The way i set it up, it is clean, easy and doesn't hinder navigation in windows.... however it you want it to always autorun... follow directions on next line.
If you want it to autorun, remove the shell\BackMeUp\ from "shell\BackMeUp\command=G6LiteBackup.bat" from autorun.inf
The timestamp file will be in this format unless you want to change it.
Backed UP
10:57 AM
Wed 09/13/2006
----------
Every backup will add or increment onto this file like so...
Backed UP
10:57 AM
Wed 09/13/2006
----------
Backed UP
10:59 AM
Wed 09/13/2006
----------
I take no responsibility for loss or damage... this works for me quite well.
Here is the file... Download Here
CODE:
Autorun.inf
________________________________
[autorun]
shell\BackMeUp\command=G6LiteBackup.bat
icon=g6lite.ico
label=G6 Lite
G6LiteBackup.bat
_________________________________
@ECHO OFF
REM ------------------------G6LiteBackup.bat-----------------------
REM Creates directory c:\G6LiteBackup
REM changes directory to new folder
REM create exclusion list of .nds and .gba and root files not needed you may add what you like here
REM executes xcopy ;only newer files;copies all subdirectories;ignore errors;suppress y prompt;assume directory
REM append date and time to Timestamp file
REM deletes exclusion list
REM ----------------------------by Krad----------------------------
cd C:\
md c:\G6LiteBackup
cd c:\G6LiteBackup
echo .nds>> c:\G6LiteBackup\excluded.txt
echo .gba>> c:\G6LiteBackup\excluded.txt
echo autorun.inf>> c:\G6LiteBackup\excluded.txt
echo G6LiteBackup.bat>> c:\G6LiteBackup\excluded.txt
echo g6lite.ico>> c:\G6LiteBackup\excluded.txt
xcopy "I:\*" "c:\G6LiteBackup" /c /q /d /e /h /y /i /EXCLUDE:C:\G6LiteBackup\excluded.txt
echo Backed UP>>c:\G6LiteBackup\Timestamp.txt
TIME /T 1>>c:\G6LiteBackup\Timestamp.txt
DATE /T 1>>c:\G6LiteBackup\Timestamp.txt
echo ---------->>c:\G6LiteBackup\Timestamp.txt
del /q c:\G6LiteBackup\excluded.txt
___________________________________________
Let me know if you have any questions....
I got some good windows hacks and things on my website where the file is located... www.kradest.com ... click on some links to help me out...
Hope this is helpful...
I have included a zip file from my website that has 3 file.
file 1> autorun.inf
points to a g6lite icon stored on the root of the g6lite
labels the drive in windows as G6 Lite
adds a shell command to windows to backup the g6lite, excluding certain file types.
file2> g6lite.ico
icon file of g6lite for pretty
file3> G6LiteBackup.bat
Creates a directory... default is c:\G6litebackup
moves to that directory
creates an exclude list in excluded.txt in that same folder
files currently excluded are .nds .gba autorun.inf g6lite.ico and the g6litebackup.bat
begins xcopy of whole g6lite excluding the file types and files above
creates a file called timestamp.txt in the c:\G6litebackup folder with a stamp of date and time
deletes the excluded.txt file on completion.
The zip file is 123kb, it is large due to the icon i created that supports all pixel ranges from 6x6 to 256x256
i will post the code now.... you may alter the "i:" to whatever your g6lite comes up as....
you may change the folder or folder path... You could use swiches like "c:\documents and settings\%username&\Desktop"
HOW TO INSTALL
1. Alter the g6litebackup.bat to the way you like.
2. Copy all three files to root of g6lite
3. Right click and goto properties of each file and give them the hidden attribute.
4. Hit refresh to see that they are now hidden.
HOW TO RUN THIS????
1. Insert g6lite with dongle into usb port.
2. Right click on g6lite drive
3. Hit BackMeUP
that is it.
WHY DID I DO THE SHELL ADDON, as opposed to autorun on connect?
I think it would be very annoying everytime to not be able to double click on the drive to get into it. The way i set it up, it is clean, easy and doesn't hinder navigation in windows.... however it you want it to always autorun... follow directions on next line.
If you want it to autorun, remove the shell\BackMeUp\ from "shell\BackMeUp\command=G6LiteBackup.bat" from autorun.inf
The timestamp file will be in this format unless you want to change it.
Backed UP
10:57 AM
Wed 09/13/2006
----------
Every backup will add or increment onto this file like so...
Backed UP
10:57 AM
Wed 09/13/2006
----------
Backed UP
10:59 AM
Wed 09/13/2006
----------
I take no responsibility for loss or damage... this works for me quite well.
Here is the file... Download Here
CODE:
Autorun.inf
________________________________
[autorun]
shell\BackMeUp\command=G6LiteBackup.bat
icon=g6lite.ico
label=G6 Lite
G6LiteBackup.bat
_________________________________
@ECHO OFF
REM ------------------------G6LiteBackup.bat-----------------------
REM Creates directory c:\G6LiteBackup
REM changes directory to new folder
REM create exclusion list of .nds and .gba and root files not needed you may add what you like here
REM executes xcopy ;only newer files;copies all subdirectories;ignore errors;suppress y prompt;assume directory
REM append date and time to Timestamp file
REM deletes exclusion list
REM ----------------------------by Krad----------------------------
cd C:\
md c:\G6LiteBackup
cd c:\G6LiteBackup
echo .nds>> c:\G6LiteBackup\excluded.txt
echo .gba>> c:\G6LiteBackup\excluded.txt
echo autorun.inf>> c:\G6LiteBackup\excluded.txt
echo G6LiteBackup.bat>> c:\G6LiteBackup\excluded.txt
echo g6lite.ico>> c:\G6LiteBackup\excluded.txt
xcopy "I:\*" "c:\G6LiteBackup" /c /q /d /e /h /y /i /EXCLUDE:C:\G6LiteBackup\excluded.txt
echo Backed UP>>c:\G6LiteBackup\Timestamp.txt
TIME /T 1>>c:\G6LiteBackup\Timestamp.txt
DATE /T 1>>c:\G6LiteBackup\Timestamp.txt
echo ---------->>c:\G6LiteBackup\Timestamp.txt
del /q c:\G6LiteBackup\excluded.txt
___________________________________________
Let me know if you have any questions....
I got some good windows hacks and things on my website where the file is located... www.kradest.com ... click on some links to help me out...
Hope this is helpful...