Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Guest
2012-01-13T08:47:49Z
hi Chronies,


How do i create a new folder with the same name as the file that file triggered the creation of the new folder?

Eg new_test_1.txt is the file that triggered the creation of the new folder

and i want that folder to be called new_test_1 with the .txt removed

Andrew
Sponsor
Forum information
Support
2012-01-13T09:23:42Z
Use the Create folder Task.

In the path, for the folder you want to create you first write the base bath (where your folder should exist), like:

c:\test

Then we add on the name Variable from the Trigger:

c:\test\{TRIGGER(Active|LastTrigger|File.Result.Name)}

Now, we want to wash out the extension, and I assume you know the extension so:

c:\test\{STRING(Replace|{TRIGGER(Active|LastTrigger|File.Result.Name)}|.pdf|)}

Replace .pdf with the extension you want to replace.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Guest
2012-01-13T12:23:10Z
Wow, it works 🙂 Thanks! but..


not sure what you meant by

"Now, we want to wash out the extension, and I assume you know the extension so:

c:\test\{STRING(Replace|{TRIGGER(Active|LastTrigger|File.Result.Name)}|.pdf|)}

Replace .pdf with the extension you want to replace."


So now i have a folder called new_text_document.txt

but i want a folder called new_text_document

do i have to create a seperate job to do this?
Support
2012-01-13T12:25:14Z
In your case it seems you want to use a .txt document as base. Then use txt in the replace function:

c:\test\{STRING(Replace|{TRIGGER(Active|LastTrigger|File.Result.Name)}|.txt|)}
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Guest
2012-01-13T12:48:56Z
Hurrah for Henrik the Hero! 🙂

Andrew x
Scroll to Top