Solved! Go to Solution.
Hi @AnkitDesai
With Alteryx is the Run Command tool, you can use this to external applications/processes. I'd use this to run a batch file that did the rename/move process.
You could use Alteryx to write the batch file if necessary, or if you were able to write a generic script, you can execute it via the events within a workflow.
This doesn't quite do exactly what you are after, but hopefully gives you a good start, but let me know if you still need a hand:
Sure, that will teach me to be a little lazy and not answer properly!
If you create a batch file that looks like:
cd "C:\Users\jstrellis\Dropbox (Alteryx, Inc.)\MyDocuments\Community\RenameFolder"
Ren "OrignalName" "OrignalName_%date:~6,4%%date:~3,2%%date:~0,2%"
mkdir "C:\Users\jstrellis\Dropbox (Alteryx, Inc.)\MyDocuments\Community\RenameFolder\Rename"
And then run this as an event after your workflow has finished, that should do the trick.
cd changes the directory to the parent folder you are working in.
ren will rename a folder in that directory, in my example above I have the folder OriginalName, that gets renamed to add "_YYYYMMDD" on the end of it.
I then make the original folder again.
I think that should do what you need.
thanks Joe, just tweeked and created a bat file and wohhoooo, files moved.
Thanks again for your help....
@AnkitDesai wrote:
thanks Joe, just tweeked and created a bat file and wohhoooo, files moved.
Thanks again for your help....
Great stuff, glad you got it working!