oldfile=true
if not fileexists(sle_filename.text) then
bttn=messagebox("系统提示","指定文件不存在,是否新建备份文件",Question!,YesNo!,2)
if bttn=2 then
return
end if
oldfile=false
end if
backupcmmd=isql+" -S "+servername+" -U "+userid+" -P "+dbpass+' -d master -Q"BACKUP DATABASE '+database+' TO DISK= ~''+sle_filename.text+'~' with init "'
i=run(backupcmmd,minimized!)
if i=1 then
messagebox("系统信息","服务器已经开始执行备份操作")
end if