cancel
Showing results for 
Search instead for 
Did you mean: 
FreeFlow Production Workflow Moderator DavidU54339-XRX
FreeFlow Production Workflow Moderator

Re: script to create a folder that is named with the first 6 characters of the file name

The only thing I can think of is the bat file being edited. This is the text from the bat file I'm using:

:: Save_wDir.bat - for FF Core external process
:: save FF Core output file
:: Call with "$FFin$" "$FFout$" "BaseDir"
echo %date% %time% %1 %2 %3 %4
setlocal
set BaseDir="%3"
set FileName="%~n1.pdf"
set NumPath="%FileName:~0,6%"
mkdir %BaseDir%\%NumPath%
copy %1 %BaseDir%\%NumPath%\"%FileName%"

0 Kudos
Rob Foster Member
Member

Re: script to create a folder that is named with the first 6 characters of the file name

Hi There

 

So in the external node

ive put "$FFin$" "$FFout$" "BaseDir"

 

Is the "BaseDir" the directory where i want the folder to be created, or is that the directory where the script lives?

 

Thanks

0 Kudos