<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: send form but delete file first</title><link>https://www.infopathdev.com:443/forums/thread/14518.aspx</link><pubDate>Wed, 03 May 2006 05:03:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14518</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14518.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14518</wfw:commentRss><description>Where do you have the file saved in the file system or the Sharepoint?&lt;br /&gt;&lt;br /&gt;If it is Sharepoint you can delete the file by using "Lists" webservice provided by Sharepoint.&lt;br /&gt;&lt;br /&gt;If it is File system you can use System.IO.File.Delete("path");</description></item><item><title>send form but delete file first</title><link>https://www.infopathdev.com:443/forums/thread/12854.aspx</link><pubDate>Tue, 02 May 2006 15:11:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12854</guid><dc:creator>joanfuture</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12854.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12854</wfw:commentRss><description>Hello everyone,&lt;br /&gt;I've got seemingly easy problem but am not able to solve it, so please help me out.&lt;br /&gt;&lt;br /&gt;The actual problem is to send the form via smtp within the comapanynet. As we have Outlook 2000 I couldn't use the built-in IP-Function. BUT for some reason you can only send saved and closed files with smtp. Okay so I save the file twice! with two different names to keep it open and send the first-saved file away.&lt;br /&gt;&lt;br /&gt;But now I've got two! files with highly questionable content that I really really don't want there lying around as the user has no idea of this and some day a searchengine will find this and so on ...&lt;br /&gt;&lt;br /&gt;1. How can I delete these files, when one of them is open and I am currently looking at it. How can I delete the file I am working on?!?!&lt;br /&gt;2. Can I solve it more elegantly by some cast/conversion/ makefileObjekt that I give the smtp-routine in the first place.&lt;br /&gt;&lt;br /&gt;I take any code, preferably C#.&lt;br /&gt;&lt;br /&gt;Well, what do you people think?&lt;br /&gt;thx very much&lt;br /&gt;Michael</description></item></channel></rss>