I am trying to use the result of the localmkdir in the exec command see bottom of script
Thanks for any help
I am just getting started using scriptftp
FTP Script
- # Blat parameters. This is the command line program
- # used in this example to send emails from ScriptFTP
- $blat_path="C:\blat\Full\blat.exe"
- $smtp_server="x.com"
- $smtp_user="x@x.com"
- $smtp_password="x"
- $email_from="x@x.com"
- $email_to="xs@xl.com"
- $email_subject="RRS backup "
- $email_body1="Backup is complete on Zach\rrsbackup"
- $email_body2="The Red River Backup has started."
- $common_part_1=$blat_path." -server ".$smtp_server." -u ".$smtp_user." -pw "
- $common_part_2=$smtp_password." -f ".$email_from." -to ".$email_to." -subject ".'"'
- $common_part_3=$email_subject.'"'
- $cmd_line_part_4_1=" -body ".'"'.$email_body1.'"'
- $cmd_line_part_4_2=" -body ".'"'.$email_body2.'"'
- # Concatenate the text string to build the complete command lines
- $blat_cmd_line_1=$common_part_1.$common_part_2.$common_part_3.$cmd_line_part_4_1
- $blat_cmd_line_2=$common_part_1.$common_part_2.$common_part_3.$cmd_line_part_4_2
- #$aLocalDir = "B:\".(GETTIME(MONTH)."-".(GETTIME(day)."-".GETTIME(YEAR)))
- #$aLocalDir = "B:\".(GETTIME(Format1))
- # ------------------------------------------
- # here is what i'm trying to do
- # ------------------------------------------
Thanks for any help
I am just getting started using scriptftp
FTP Script
thank you for your help. does that mean that you don't change directories or does it matter where you are when you send the cmd
thanks
thanks
***** Script error on line 6, column 27: ")" expectedit does not like the switch however i put it
exec("xcopy " .$alocalDir '/e')
It works without the switch
dot and space are missing
FTP Script
That worked it had to have been the space in the /e
Thanks for your help
Thanks for your help
- All times are UTC -