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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to delete files on an action.

Status
Not open for further replies.

brahman

Programmer
Apr 17, 2003
21
IN
Dear Group Mates,

I generated some files at runtime now i want to delete the same files at an instance say at logout.

The path of the file is known to me and so that is not a problem, the conditions can be set on what to delete, but i dont know how to since the files are on a server.

Bye for now
amit
 
prefix the server host name or IP with the path of the files.
 
I tried that but it is taking

c://jrun4/../servers/...../filename

../servers/...../filename
this part i am giving it as prefix.

where as it should take c://jrun4/server/..../filename

it is taking .. extra before the path.

 
you should specify the filepath with respect to the virtual root directory.
Say the file is located at c:\\jrun\...\servers\default\ default-app
where default-app is the root directory.Then prefix the server host name or IP with the name of the files.Ignore
c:\\jrun\...\servers\default\ default-app etc. from the file name.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top