Forum Discussion
Hi vcocco,
Your slashes are the wrong way, and you need two / after “smb:”, like so if the expression button (“=”) is pressed:
‘smb://server/share/folder/filename.ext’
Here’s a bonus hint: if you are piping the file name in to the File Writer snap from a Directory Browser–>File Reader combo, you can capture that name with a line like this in the expression:
‘smb://server/share/folder/’ + $[‘content-location’].match(“[^/]+$”).toString()
This uses a regular expression to pull the name from the ‘hidden’ variables that pass through some pipelines, and converts it to a string. You can look for them after any snap by adding a Mapper and then holding Shift while you click Validate (this forces a refresh of the cached validation data) - the left side of the Mapper should show you any additional values for your use.
Mark W.