Jump to content

Title Formatting

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
PTaab

PTaab

    Newbie

  • Members
  • PipPip
  • 15 posts
Hi

Since Im new here I won't bother too much already but would just like to ask if anyone can correct my code line (title string). It seem like Im doing something wrong here. Its about moving the folders from one location to another. I have something like this:

$replace(%path%,'C:\OldFolder\Subfolder1\Subfolder2\Subfolder3\Subfolder4\ManyImportantSubfolders','C:\NewFolder\')%filename%

When doing this code I have the path to the new folder, something like this:
C:\NewFolder\C-\OldFolder\Subfolder1\Subfolder2\Subfolder3\Subfolder4\ManyImportantSubfolders

but is it possible to have something like this?:
C:\NewFolder\ManyImportantSubfolders

So without all unwanted Subfolders. The %path% part must be there I guess but some other function could be missing? What am I doing wrong?

Thank you.

Ptaab

#2
PTaab

PTaab

    Newbie

  • Members
  • PipPip
  • 15 posts
No replies needed - I just fixed it alone. If someone is interested and want to know how:

$sub($len($get(foo)),2)) needs to be added after old folder path.