Dim sDesktop As String
Dim sMyDocs As String
Dim oShell As Variant
Dim oShortcut As Variant
Dim oFS As Variant
Set oShell = CreateObject("WScript.Shell")
Set oFS = CreateObject("Scripting.FileSystemObject")
sDesktop = oShell.SpecialFolders("Desktop")
sMyDocs = oShell.SpecialFolders("MyDocuments")
'Copy the file
Filecopy "P:\Charles\BPS Barcodes.mdb", sMyDocs & "\BPS Barcodes.mdb"
'Create shortcut
Set oShortcut = oShell.CreateShortcut(sDesktop & "\BPS Barcodes.lnk")
oShortcut.TargetPath = sMyDocs & "\BPS Barcodes.mdb"
oShortcut.Save
Messagebox "Installation successful.", 0, "BPS Barcodes"
provided by Julian Robichaux at nsftools.com.
SNTT , show-n-tell thursday
No comments:
Post a Comment