Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Create folders on a remote server

Updated: 21 May 2010 | 4 comments
paro's picture
0 0 Votes
Login to vote

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

discussion Filed Under:

Comments

reecardo's picture
19
Feb
2009
0 Votes 0
Login to vote

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...

AdrianC's picture
19
Feb
2009
0 Votes 0
Login to vote

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.

Solar_Wes's picture
19
Feb
2009
0 Votes 0
Login to vote

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

paro's picture
24
Feb
2009
0 Votes 0
Login to vote

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

Project Manager / Founder
Asterio AB, Sweden
www.asterio.se