Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete source file after transfer?

Status
Not open for further replies.

dkr1

Technical User
May 22, 2002
35
US
Newbie in need...

How do I remove the source file after a kermit file transfer?

Thanks in advance!
 
Are you asking about a file you are uploading from your local machine? If so, you could use the delfile command to delete the local file.
aspect@aspectscripting.com
 
knob...thanks for the reply...I would like to have the source file removed at the end of the process for whatever the user places in the fname box...



proc main

;set dnldpath "c:\CSDDOWNLOAD"

string fname

sdlginput "Receive TX FILE" "Enter TEXT file to receive from /u/csd/TX : " fname

transmit "E^M"
transmit "E^M"
;transmit "E^M" for facet term users only
; transmit "^W" " " "
;transmit "Q" " " "
;transmit "Y^M" " " "
;waitfor "^[a19R22C" " " "
;pause 1 " " "
transmit "69^M"
waitfor "$ "
;transmit "su bd^M"
;waitfor "# "
transmit "cd TX^M"
waitfor "$ "
transmit "term -x server^M"
waitfor " Enter Your Selection:"
transmit "k"
waitfor " Upload to TERM server, Download to you, Neither (U/D/N)? "
transmit "D"
waitfor " "
transmit fname
transmit "^M"
waitfor " Hit any key to continue"
transmit "^M"
waitfor " Enter Your Selection:"
transmit "Q"
; waitfor "# "
;transmit "^D"
waitfor "$ "
transmit "GO^M"

;set dnldpath "c\csddownload"
endproc
 
I don't see anywhere in your script where fname is being set to a value by your user, such as them choosing a file from an ASPECT dialog box. However, if you modified your script to do as such (see the discussion of the dirlistbox command for an example), you would then know what file the user selected due to the dirlistbox command saving it to a string variable, then could use that string value with the delfile command to delete the file.
aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top