Create folders on a remote server
Hey all.
I would like to be able to create a folder on a remote server from my workflow but I can't seem to find the component that actually does that.
There is a "create directory" component but it cannot be user to create a folder through UNC. I also found a couple of adddirectory components but they didn't seem to solve my problem.
Any help is appreciated.
Cheers,
Patrik
Filed under: Endpoint Management and Virtualization
You could accomplish this
You could accomplish this through a task component that executes script (if you're using an NS). I'm not sure how to proceed...
No experience in workflow, but you could try this
I'm not quite sure how workflow works as I've never used it, but if you can trigger a commandline the below command will work as long as the user has permissions. It could easily be put into a batch file failing that.
mkdir \\server\c$\Folder
or
mkdir \\server\share\Folder
Breakdown (Guessing you know all this but hey..)
mkdir - Command to create a folder
server - replace with computer/server name
c$ - default windows share to c: drive
share - UNC share, replace with share name
folder - Replace with folder name you are creating.
Hope that helps in some form or another.
CreateDirectory (Default.IO)
The component you should use is "Create Directory" (component class name: "LogicBase.Components.Default.IO.CreateDirectory").
Is this the component you tried? It works fine for me, both for creating a local folder and for creating a folder on a remote directory.
I tested it in three formats:
+ "C:\TEST1" (local)
+ "P:\TEST2" (server)
+ "\\APP1\Shared\TEST3" (server)
These all worked.
Wes
Strange
Hello wes.
Thanks for the input. I tried the same Create Directory component but it wasn't able to create a remote directory using UNC naming.
Good to know that it worked for you. I will give that a shot again when I get the time.
Cheers,
Patrik
Senior Technical Advisor (Altiris)
Asterio AB, Sweden
www.asterio.se
Would you like to reply?
Login or Register to post your comment.