vbscript via SCCM
guys i am running a copy command vbscript via SCCM & it's not working. I get the successfull on the deployment but actually it's not copying the file. Please look @ the code that i am trying to execute. SCript works fine manually
Dim FSO
Set FSO = CreateObject("Scripting.FileSystemObject")
FSO.CopyFile "abc.js", "C:\Program Files\Mozilla Firefox\", true
0 Comments
[ + ] Show comments
Answers (6)
Please log in to answer
Posted by:
pjgeutjens
13 years ago
Posted by:
Helpy
13 years ago
Posted by:
chichora123
13 years ago
Posted by:
itolutions
13 years ago
Posted by:
anonymous_9363
13 years ago
I see we have another scripter who imagines that the scriptingengine can work out for itself where source the file is located. Try
FSO.CopyFile "[path_containing_abc.js]abc.js", "C:\Program Files\Mozilla Firefox\", true
Oh, and some error-trapping is always good. Like, does the source file exist? What about the target drive? The target path? In time, you'll create your own FileCopy function which has these things built in and you can then stop re-writing it every time you create a script.
Comments:
-
I like your little "attempting to give a Darn" etc... made me laugh - J.M. 10 years ago
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.