Create Directory and place file into directory
Hello I want to create a VB script to do the following. (I have looked at some many scripts)
Create a directory under windows
\windows\Sun\Java\Deployment
then place a file into that directory
I have the file in Dependencies (so it will be placed in Kbots)
Thank you
1 Comment
[ + ] Show comment
Answers (4)
Please log in to answer
Posted by:
nshah
8 years ago
Why don't you just use the File Sync under Distribution. It can create the folder and also copy the file down to that folder.
http://www.itninja.com/blog/view/k1000-file-synchronization-tips-tricks-and-things-i-have-learned
The admin guide should also show you have to use it as well. No need to write a script if you just trying to copy something down to a machine.
Posted by:
kitco
8 years ago
Posted by:
vjaneczko
8 years ago
Posted by:
AaronDonald
8 years ago
Anything in this direction?
Set oWsh = CreateObject("WScript.Shell")
sRoot = oWsh.ExpandEnvironmentStrings("%Systemroot%")
oWsh.Run "CMD /C MD " & sRoot & "\Sun\Java\Deployment",0,True
oWsh.Run "CMD /C COPY C:\Windows\win.ini C:\Windows\Sun\Java\Deployment",0,True - kitco 8 years ago