<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dosya Silme arşivleri - Yunus Emre Araç</title>
	<atom:link href="https://www.yunusemrearac.com/tag/dosya-silme/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.yunusemrearac.com/tag/dosya-silme/</link>
	<description>SharePoint Consultant &#124; Microsoft 365 &#124; SharePoint Server &#38; Online</description>
	<lastBuildDate>Mon, 03 Dec 2018 08:55:07 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>

<image>
	<url>https://www.yunusemrearac.com/wp-content/uploads/2014/11/MetroUI_VisualStudio_2012-545c8860_site_icon-32x32.png</url>
	<title>Dosya Silme arşivleri - Yunus Emre Araç</title>
	<link>https://www.yunusemrearac.com/tag/dosya-silme/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">67294213</site>	<item>
		<title>C# Kodu ile Bilgisayardan Dosya Silme İşlemi</title>
		<link>https://www.yunusemrearac.com/2015/10/16/c-kodu-ile-bilgisayardan-dosya-silme-islemi/</link>
					<comments>https://www.yunusemrearac.com/2015/10/16/c-kodu-ile-bilgisayardan-dosya-silme-islemi/#comments</comments>
		
		<dc:creator><![CDATA[yunusemrearac]]></dc:creator>
		<pubDate>Fri, 16 Oct 2015 10:56:07 +0000</pubDate>
				<category><![CDATA[Windows Form - C#]]></category>
		<category><![CDATA[Dosya Silme]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Teknoloji]]></category>
		<guid isPermaLink="false">http://yunusemrearac.com/?p=724</guid>

					<description><![CDATA[<p>Merhaba arkadaşlar, C# kodu ile bilgisayarınızın herhangi bir yerinde bulunan herhangi bir dosyayı silmek istiyorsanız aşağıdaki kod parçacığını kullanabilirsiniz. [crayon-6af2fd304d81b419993662/] Burada LocalPath ile geçen yere&#8230;</p>
<p>The post <a href="https://www.yunusemrearac.com/2015/10/16/c-kodu-ile-bilgisayardan-dosya-silme-islemi/">C# Kodu ile Bilgisayardan Dosya Silme İşlemi</a> appeared first on <a href="https://www.yunusemrearac.com">Yunus Emre Araç</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Merhaba arkadaşlar, C# kodu ile bilgisayarınızın herhangi bir yerinde bulunan herhangi bir dosyayı silmek istiyorsanız aşağıdaki kod parçacığını kullanabilirsiniz.</p><pre class="urvanov-syntax-highlighter-plain-tag">if (System.IO.File.Exists(@"LocalPath"))
{
System.IO.File.Delete(@"LocalPath");
}</pre><p>Burada <strong>LocalPath</strong> ile geçen yere silmek istediğiniz dosyanın bilgisayar yol adresini yazmanız gerekmektedir. (ÖR : D:\yunusemrearac.bak)</p>
<p>Yukarıda ki kod kısmında if içinde bulunan kısımda silmek istediğimiz dosyanın olup olmadığını kontrol ediyoruz. Eğer dosyamız varsa silme işlemini gerçekleştiriyor. Siz direk silme kodunu da kullanabilirsiniz ama farklı durumlarda hata almak istemiyorsanız dosya olup olmama durumunu da kontrol etmenizi tavsiye ederim.</p>
<p>Ekstra bir durum ise dosyanın var olduğu halde silme işlemini yapamamasıdır. Mesela bir word dosyası açıkken silmeye çalışırsanız hata verecektir. Böyle durumda ise silme işlemini try catch bloğuna alıp bu ve bu tür hatalara karşı sistemin bozulmamasını sağlayıp bu durumlar karşısında hata mesajımı yoksa sizin belirlediğiniz bir mesajı vermesini sağlayabilirsiniz.</p>
<p>The post <a href="https://www.yunusemrearac.com/2015/10/16/c-kodu-ile-bilgisayardan-dosya-silme-islemi/">C# Kodu ile Bilgisayardan Dosya Silme İşlemi</a> appeared first on <a href="https://www.yunusemrearac.com">Yunus Emre Araç</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.yunusemrearac.com/2015/10/16/c-kodu-ile-bilgisayardan-dosya-silme-islemi/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">724</post-id>	</item>
	</channel>
</rss>
