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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Just thinking out loud wouldn´t your shortcuts point to 2 finely tuned scripts that would do the work?
Answered 08/17/2011 by: admaai
Orange Senior Belt

Please log in to comment
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...
Answered 08/17/2011 by: Repackman
Purple Belt

Please log in to comment
0
what os are you doing this on? could be entertaining on win7.
Answered 08/17/2011 by: jmcfadyen
Fifth Degree Black Belt

Please log in to comment
0
No, I meant adding 2 vbs to your application and shortcuts pointing to those.
Answered 08/18/2011 by: admaai
Orange Senior Belt

Please log in to comment
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?
Answered 08/18/2011 by: Repackman
Purple Belt

Please log in to comment
0
This is XP...
Answered 08/18/2011 by: Repackman
Purple Belt

Please log in to comment
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.
Answered 08/18/2011 by: admaai
Orange Senior Belt

Please log in to comment
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'.
Answered 08/18/2011 by: VBScab
Red Belt

Please log in to comment
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...
Answered 08/25/2011 by: Repackman
Purple Belt

Please log in to comment
Answer this question or Comment on this question for clarity