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...
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)
Please log in to answer
Posted by:
admaai
13 years ago
Posted by:
Repackman
13 years ago
Posted by:
admaai
13 years ago
Posted by:
Repackman
13 years ago
Posted by:
admaai
13 years ago
Posted by:
anonymous_9363
13 years ago
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'.
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
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...
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.
so that the conversation will remain readable.