/build/static/layout/Breadcrumb_cap_w.png

Shortcut Pointing To...

Hello folks...

A stumper for you...

So, I need to create two shortcuts for an application I am packaging...One shortcut takes the files from two local directories and places them on the network share folders with the same names...

The other shortcut does the opposite...It takes the contents of the two network directories and places them on the local directories of the same name...

Oh, and the files must not be overwritten...

I am a bit at my wit's end regarding this...Any help and pointing in the right direction would be most appreciated...

Thank you...

0 Comments   [ + ] Show comments

Answers (9)

Posted by: admaai 13 years ago
Orange Senior Belt
0
Just thinking out loud wouldn´t your shortcuts point to 2 finely tuned scripts that would do the work?
Posted by: Repackman 13 years ago
Purple Belt
0
You mean batch scripts?

Edit: I cannot use Wisescripts...The environment I am working in shuns them...It has to be MSI with a VB Script or just MSI with transforms...
Posted by: jmcfadyen 13 years ago
5th Degree Black Belt
0
what os are you doing this on? could be entertaining on win7.
Posted by: admaai 13 years ago
Orange Senior Belt
0
No, I meant adding 2 vbs to your application and shortcuts pointing to those.
Posted by: Repackman 13 years ago
Purple Belt
0
Wouldn't batch scripts be better?

EDIT: So, you wouldn't happen to have a VB script that copies stuff lying around in your dungeon, would you?
Posted by: Repackman 13 years ago
Purple Belt
0
This is XP...
Posted by: admaai 13 years ago
Orange Senior Belt
0
Sorry, no. I usually go hunting/cut & pasting myself when I need a VBS. Maybe someone else here wishes to share their code? Error handling gives me a headache, but you should have it in your script.
Posted by: anonymous_9363 13 years ago
Red Belt
0
You don't need 2 scripts, but one. Build a function, into which you pass the name of the source and destination folders. You rmain code then calls the function with different parameters, depending on the scenario.

To prevent overwrite, use the FolderExists/FileExists methods of the FileSystemObject, er, object!

To get the shell for your script, go to computerperformance.co.uk or Google for 'vbscript copy folder'.
Posted by: Repackman 13 years ago
Purple Belt
0
VBScab, thank you so much for your expert insight as always...

However, since I know you are VBophile, could you perhaps share the code with me to make it work? I found a couple, but unfortunately I am looking to transfer 2 local folder files to 2 network folders of the same name and vice versa without overwriting...

Your help would be most welcome and appreciated...
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ