Newbies bsadecki Posted December 21, 2011 Newbies Posted December 21, 2011 I can't seem to specify a filename with SCDownload. It keeps saving to the correct path but with the same name as it has in SC Server. Is my syntax correct? SCDownload($path; "filewin://remotecomputer/shared/path/"; "filename="&$filename&"."&$extension; "checkForFile=true")
William Posted December 21, 2011 Posted December 21, 2011 From the documentation: NOTE: if specifying a named parameter like filename, the destinationFolder, width, and height are then required, because these parameters are positional. Example: SCDownload ( "Photos/Original/" & Photos::Photo ID ; // Folder Path Get( DesktopPath ) & "MyPhotos/" ; // Destination folder 0 ; 0 ; //width & height parameters "filename=" & $fileName ; "returns=filepath" ) Looks like you forgot to include the width and height parameters: SCDownload($path; "filewin://remotecomputer/shared/path/"; <WIDTH> ; <HEIGHT> ; "filename="&$filename&"."&$extension; "checkForFile=true") William OKeefe Frenel Solutions I can't seem to specify a filename with SCDownload. It keeps saving to the correct path but with the same name as it has in SC Server. Is my syntax correct? SCDownload($path; "filewin://remotecomputer/shared/path/"; "filename="&$filename&"."&$extension; "checkForFile=true")
Recommended Posts
This topic is 4720 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now