Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy Files Shortcut pointing to
Message
De
27/04/1998 10:06:27
 
 
À
27/04/1998 09:19:09
Information générale
Forum:
Windows
Catégorie:
Autre
Divers
Thread ID:
00092706
Message ID:
00095116
Vues:
33
<snip>
>
>For the code I'll look it over, Actualy I was looking for some way to do this copy not Via Foxpro, but rather Via the Windows95 operating system. i'm sorry I was'nt to clear on that. but i'm sure the code will come in handy.
>

SHORTCUT.EXE is not a part of FoxPro - I simply gave some sample code that built a command line for it in Foxpro. You could easily use it in a batch file to modify a shortcut's target directory at the same time the files were copied/moved by the batch file, and you can always modify the shortcut by hand (right click the shortcut, pick Properties, and change the Start In directory under the Shortcut tab.) There's also an API interface to modify/create shortcuts (it's an OLE interface that is most easily accessed via C++) directly. From what you've said, I'd look at building batch files to perform the move/copy, passing the new directory as a command line parameter and using SHORTCUT.EXE to reconstruct/modify the shortcut based on command line parameters within the batch file.

Ed
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform