December 21, 201114 yr Newbies 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")
December 21, 201114 yr 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")
Create an account or sign in to comment