<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8757656898890189968</id><updated>2024-08-29T08:07:05.281+02:00</updated><category term="Batch scripts"/><category term="Others"/><title type='text'>code.ladasoukup.cz</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://code.ladasoukup.cz/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8757656898890189968/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://code.ladasoukup.cz/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ladislav Soukup</name><uri>http://www.blogger.com/profile/16357251876356034784</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0mUlcro0JzklzR1kI92DXpmzFws-yzOeQ0pm0lgItCu_KcLLnZPvFeyb2A2-EAwJ3V7IVC98bQX27_EEVHkULfJjgF0ia3RhAs8PBDrdECQhe_pA9oebclt6c5dtLZw/s220/_logo-LadaSoukup-web.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8757656898890189968.post-8562516242509348599</id><published>2012-09-17T13:40:00.000+02:00</published><updated>2015-05-21T22:18:53.199+02:00</updated><title type='text'>GIT</title><content type='html'>You can find most of my older and current code at my GIT&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;a href=&quot;https://bitbucket.org/ladasoukup&quot;&gt;https://bitbucket.org/ladasoukup&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
(hosted on Bitbucket.com)</content><link rel='replies' type='application/atom+xml' href='http://code.ladasoukup.cz/feeds/8562516242509348599/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code.ladasoukup.cz/2012/09/git.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8757656898890189968/posts/default/8562516242509348599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8757656898890189968/posts/default/8562516242509348599'/><link rel='alternate' type='text/html' href='http://code.ladasoukup.cz/2012/09/git.html' title='GIT'/><author><name>Ladislav Soukup</name><uri>http://www.blogger.com/profile/16357251876356034784</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0mUlcro0JzklzR1kI92DXpmzFws-yzOeQ0pm0lgItCu_KcLLnZPvFeyb2A2-EAwJ3V7IVC98bQX27_EEVHkULfJjgF0ia3RhAs8PBDrdECQhe_pA9oebclt6c5dtLZw/s220/_logo-LadaSoukup-web.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8757656898890189968.post-5086428543587715312</id><published>2009-02-27T10:00:00.000+01:00</published><updated>2012-02-20T16:23:55.854+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Batch scripts"/><title type='text'>batch: ntbackup.exe and rotating daily backups</title><content type='html'>This one is older batch, that will NOT work on Vista or Windows server 2008.&lt;br /&gt;
&lt;br /&gt;
If you need to do rotating daily backups (seven backups), you can use this simple batch code to call ntbackup.exe.&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
@echo off&lt;br /&gt;
for /f &quot;tokens=1-3 delims=. &quot; %%i in (&#39;date /t&#39;) do (set day=%%i)&lt;br /&gt;
echo Day: %day%&lt;br /&gt;
ntbackup backup \\server\share /j &quot;backup %day%&quot; /f &quot;c:\backups\backup.%day%.bak&quot;&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
This will fill batch variable %day% with current day (two letters) taken from &quot;date /t&quot; command. Then it will call ntbackup to run a full backup of &quot;\\server\share&quot; including all subdirectories (/j) and will store it to &quot;c:\backups\backup.%day%.bak&quot;. Variable %day% will be replaced by current day of the week... so this little script will create 7 backups and will rotate them (if you will run it daily using windows scheduler).&lt;br /&gt;
&lt;br /&gt;
This is really simple batch and can be easily modified to do much more.</content><link rel='replies' type='application/atom+xml' href='http://code.ladasoukup.cz/feeds/5086428543587715312/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code.ladasoukup.cz/2009/02/batch-ntbackupexe-and-ratating-daily.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8757656898890189968/posts/default/5086428543587715312'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8757656898890189968/posts/default/5086428543587715312'/><link rel='alternate' type='text/html' href='http://code.ladasoukup.cz/2009/02/batch-ntbackupexe-and-ratating-daily.html' title='batch: ntbackup.exe and rotating daily backups'/><author><name>Ladislav Soukup</name><uri>http://www.blogger.com/profile/16357251876356034784</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0mUlcro0JzklzR1kI92DXpmzFws-yzOeQ0pm0lgItCu_KcLLnZPvFeyb2A2-EAwJ3V7IVC98bQX27_EEVHkULfJjgF0ia3RhAs8PBDrdECQhe_pA9oebclt6c5dtLZw/s220/_logo-LadaSoukup-web.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8757656898890189968.post-7445961200091413402</id><published>2009-02-26T18:35:00.006+01:00</published><updated>2010-06-02T15:38:24.642+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Others"/><title type='text'>Visual Studio express - problems with 32bit DLLs on 64bit OS.</title><content type='html'>When you are writing any application in Visual Studio 2005/2008 you can target the application to x86, x64 or by default to AnyCPU. Anytime you want to use 32bit only DLL, you have to set target to x86, otherwise your application will crash on 64bit OS.&lt;br /&gt;
&lt;br /&gt;
However, you can&#39;t target your application to specific platform in Visual Studio 2005/2008 express edition! Express editions are targeted to AnyCPU, that will allow them to run in 64bit mode on 64bit OS. The problem is when you will link any 32bit DLL to this project. Your application will crash on 64bit OS as soon as it will try to call any function from the 32bit DLL.&lt;br /&gt;
&lt;br /&gt;
Solution is simple. In full version of Visual studio, just target your application to x86 platform. If you need to do this in express edition, you have to do this manually by edditing your &lt;b&gt;.csproj&lt;/b&gt; file. All you need is add one line into this file - &lt;b&gt;&amp;lt;platformtarget&amp;gt;x86&amp;lt;/platformtarget&amp;gt;&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: xml&quot;&gt;&amp;lt;PropertyGroup&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Configuration Condition=&quot; &#39;$(Configuration)&#39; == &#39;&#39; &quot;&amp;gt;Debug&amp;lt;/Configuration&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Platform Condition=&quot; &#39;$(Platform)&#39; == &#39;&#39; &quot;&amp;gt;AnyCPU&amp;lt;/Platform&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ProductVersion&amp;gt;9.0.21022&amp;lt;/ProductVersion&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;SchemaVersion&amp;gt;2.0&amp;lt;/SchemaVersion&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ProjectGuid&amp;gt;{DF511499-467A-4B2D-873E-5297A2AB4698}&amp;lt;/ProjectGuid&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;OutputType&amp;gt;Exe&amp;lt;/OutputType&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;AppDesignerFolder&amp;gt;Properties&amp;lt;/AppDesignerFolder&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;RootNamespace&amp;gt;WoL&amp;lt;/RootNamespace&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;AssemblyName&amp;gt;WoL&amp;lt;/AssemblyName&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TargetFrameworkVersion&amp;gt;v2.0&amp;lt;/TargetFrameworkVersion&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;FileAlignment&amp;gt;512&amp;lt;/FileAlignment&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StartupObject&amp;gt;WoL.Program&amp;lt;/StartupObject&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;SignAssembly&amp;gt;false&amp;lt;/SignAssembly&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;PlatformTarget&amp;gt;x86&amp;lt;/PlatformTarget&amp;gt;
&amp;lt;/PropertyGroup&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
You will find several &amp;lt;PropertyGroup&amp;gt; sections there. Just add the &lt;b&gt;&amp;lt;platformtarget&amp;gt;x86&amp;lt;/platformtarget&amp;gt;&lt;/b&gt; to all these sections and save the file. Now open your project in VisualStudio and recompile it. It will now run in 32bit even on 64bit OS and everything will be working (application will be forced to run in 32bit mode only).</content><link rel='replies' type='application/atom+xml' href='http://code.ladasoukup.cz/feeds/7445961200091413402/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code.ladasoukup.cz/2009/02/visual-studio-express-problems-with.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8757656898890189968/posts/default/7445961200091413402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8757656898890189968/posts/default/7445961200091413402'/><link rel='alternate' type='text/html' href='http://code.ladasoukup.cz/2009/02/visual-studio-express-problems-with.html' title='Visual Studio express - problems with 32bit DLLs on 64bit OS.'/><author><name>Ladislav Soukup</name><uri>http://www.blogger.com/profile/16357251876356034784</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0mUlcro0JzklzR1kI92DXpmzFws-yzOeQ0pm0lgItCu_KcLLnZPvFeyb2A2-EAwJ3V7IVC98bQX27_EEVHkULfJjgF0ia3RhAs8PBDrdECQhe_pA9oebclt6c5dtLZw/s220/_logo-LadaSoukup-web.png'/></author><thr:total>1</thr:total></entry></feed>