Re: [IronPython] Creating Symbolic Links via IronPython

2011-04-01 Thread Markus Schaber
Hi, Either you create a c# wrapper dll that exposes this function, and reference that DLL from Ironpython. Or you use the clrtype class (which can be found at http://ironpython.codeplex.com/wikipage?title=Samples) - this allows you to assign c# Attributes to python methods, so you can define

Re: [IronPython] Creating Symbolic Links via IronPython

2011-04-01 Thread Steve Dower
You should be able to use ctypes for this. For example, the following works fine from CPython (I don't have IronPython handy on this computer): from ctypes import windll windll.kernel32.CreateSymbolicLinkA(c:\\py.exe, c:\\python27\\python.exe, 0) The only difference may be calling

Re: [IronPython] Creating Symbolic Links via IronPython

2011-04-01 Thread Lukáš Duběda
Interesting! Thank you, I'll try that. Also thanks Markus Schaber, another thing to look at. :) Cheers, Lukáš Duběda Director [T] +420 602 444 164 duber studio(tm) [M] i...@duber.cz [W] http://www.duber.cz [A] R.A.Dvorského 601, Praha 10 [A] 10900, Czech Republic, Europe On 1.4.2011 8:58,

Re: [IronPython] Creating Symbolic Links via IronPython

2011-04-01 Thread Vernon Cole
Just to make sure we are all on the same page here, the original post said: I've been trying to find a solution for creating Symbolic Links via IronPython scripting, [...snip...] [Interop.DllImport(kernel32.dll, EntryPoint=CreateSymbolicLinkW, CharSet=Interop.CharSet.Unicode)] public static

Re: [IronPython] Creating Symbolic Links via IronPython

2011-04-01 Thread Brian Curtin
On Fri, Apr 1, 2011 at 20:32, Vernon Cole vernondc...@gmail.com wrote: Just to make sure we are all on the same page here, the original post said: I've been trying to find a solution for creating Symbolic Links via IronPython scripting, [...snip...] [Interop.DllImport(kernel32.dll,