Hi,
I think I found a solution for my problem.
It seems to work but I'm still testing.
Following are the things I made, in case someone else will encounter similar problem :
1. for the "StartInfo.Arguments" argument was : "/A <driveletter>:"
I changed it to " /A <driveletter>:" (with the space before)
2. I created a manifest app file inside my project as guided through this
link[
^]
and here is my manifest file :
<asmv1:assembly manifestversion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<assemblyidentity version="1.0.0.0" name="KBDefrag.app" />
<trustinfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedprivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedexecutionlevel level="highestAvailable" uiaccess="false" />
</requestedprivileges>
</security>
</trustinfo>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
</application>
</compatibility>
<dependency>
<dependentassembly>
<assemblyidentity>
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</assemblyidentity></dependentassembly>
</dependency>
</asmv1:assembly>
Ok then, I'll write back here if my application is running smoothly next week as I'm going to test it this week-end.
Thanks for all of you.