Is there a tool to dynamically create a new file directory on the hard drive (or network drive); whereby the file directory name would be a field in the incoming data, and the file would be a report coming from the Render tool?
I’ve used the command prompt tool to create directories (MKDIR) but never been able to use dynamic naming.
Solved! Go to Solution.
Can someone post a working example of this configuration?
I'm trying to use Run Command to create folder but I'm getting "Either an Output connection or Input connection is required"
When I specify ma *.bat file in Output it says the format is not known
Attached is an example that allows you to enter different folders and requires a full path
Let me know if this works for you.
What is the command within your "folder.bat" file ?
You would use the following command to run it:
folder.bat c:\temp\MyFolderName
The batch script contains the following where %1 is the first input from the cmd line:
@Echo off IF EXIST %1 ( ECHO Folder exists > folder.log) ELSE ( MKDIR %1 && echo Created folder > folder.log )
Thanks a lot for your prompt reply. That was very helpful.
I got the sample workflow to work, but for some reason when I plug that to my other workflow, the run_mkdir.bat has the command inside quotations and is not doing anything.
for example: "folder.bat C:\myDIr\Test"
When I run the snippet as is in a separate workflow; there is no quotations " " so it is working and creating the folder. Any idea what I might be missing?
Actually I want to create a folder for today's date using DateTimeToday()
I got this. The delimiter was set to zero and so it was messing things up. Its all good now. Thanks.