Variable get filename without extension
Post any question you may have in regards to GoAnywhere Director and let our talented support staff and other users assist you.
2 posts
Page 1 of 1
- Support Specialist
- Posts: 590
- Joined: Tue Jul 17, 2012 2:12 pm
- Location: Phoenix, AZ
-
Example:
<setVariable label="SetVar: MyFile" name="MyFile" value="C:\Temp\ABC123.txt" version="2.0" />
<setVariable label="SetVar: FileWOExt" name="FileWOExt" value="${ FileInfo( MyFile ):nameWithoutExtension }" version="2.0" />
PRINT:
${ FileWOExt } = ABC123
<setVariable label="SetVar: MyFile" name="MyFile" value="C:\Temp\ABC123.txt" version="2.0" />
<setVariable label="SetVar: FileWOExt" name="FileWOExt" value="${ FileInfo( MyFile ):nameWithoutExtension }" version="2.0" />
PRINT:
${ FileWOExt } = ABC123
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
2 posts
Page 1 of 1