Jump to content

Recommended Posts

Posted

Hi all, Is there a way to search the entire hard drive for a specific file ext.? Not everyone saves data to the same location and when running this script im missing some data at times. Thanks all

Here is the script I have running now

msgbox(1, "Backup", "Once Complete another Message will appear")

DirCreate("h:\backup\lotus\notes\data")

DirCreate("h:\backup\desktop")

DirCreate("h:\backup\favorites")

DirCreate("h:\backup\passport")

DirCreate("h:\backup\My Documents")

DirCreate("h:\backup\printers")

DirCreate("h:\backup\network-drives")

sleep(10000)

DirCopy(@MyDocumentsDir, "h:\backup\My Documents", 1)

DirCopy(@DesktopDir, "h:\backup\desktop", 1)

DirCopy(@FavoritesDir, "h:\backup\favorites", 1)

FileCopy("C:\program files\lotus\notes\notes.ini", "h:\backup\lotus\notes")

FileCopy("C:\program files\lotus\notes\data\*.nsf", "h:\backup\lotus\notes\data")

FileCopy("C:\program files\lotus\notes\data\*.id", "h:\backup\lotus\notes\data")

FileCopy("C:\program files\lotus\notes\data\*.dsk", "h:\backup\lotus\notes\data")

FileCopy("C:\program files\lotus\notes\data\*.ndk", "h:\backup\lotus\notes\data")

FileCopy("C:\program files\passport\*.kpd", "h:\backup\passport")

FileCopy("C:\program files\passport\*.mac", "h:\backup\passport")

FileCopy("C:\program files\passport\*.zcc", "h:\backup\passport")

FileCopy("C:\program files\passport\*.zws", "h:\backup\passport")

FileCopy("C:\program files\passport\*.*", "h:\backup\passport")

runwait(@comspec & " /c " & 'REGEDIT /E ' & 'h:\backup\network-drives\MappedDrives.reg "HKEY_CURRENT_USER\Network\"', "" ,@SW_HIDE)

runwait(@comspec & " /c " & 'REGEDIT /E ' & 'h:\backup\printers\Printers.reg "HKEY_CURRENT_USER\Printers\Connections\"', "" ,@SW_HIDE)

SoundSetWaveVolume(99)

SoundPlay("C:\winxp\media\tada.wav", 1)

msgbox(1, "Backup", "Backup Complete")

Posted

Hi all, Is there a way to search the entire hard drive for a specific file ext.? Not everyone saves data to the same location and when running this script im missing some data at times. Thanks all

FileFindFirstFile Returns a search "handle" according to file search string.

FileFindNextFile Returns a filename according to a previous call to FileFindFirstFile.

see help file for samples...

Cheers

Kurt

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...