[Gambas-user] Delete a file requiring Admin privilege
Jussi Lahtinen
jussi.lahtinen at ...626...
Sun Feb 3 15:03:39 CET 2013
Why you are not simply using Shell?
Jussi
On Sun, Feb 3, 2013 at 10:38 AM, John Rose <john.aaron.rose at ...626...>wrote:
> Apologies. I missed out the gksudo in my last message:
>
> The following works OK:
> sPath = "/home/john/Temp orary/q w.desktop"
> sLogPath = "/home/john/Temporary/Log.txt"
> Wait 1
> sCommand = "gksudo " & "desktop-file-install " & " " &
> Shell$(sPath) &
> " >/dev/null 2>" & Shell$(sLogPath)
> hProcess = Shell sCommand
> Do
> Wait 0.1
> Loop Until hProcess.State <> Process.Running
>
> But the following comes back with the help lines for gksudo i.e. where
> it does not understand the rest:
> sPath = "/home/john/Temp orary/q.desktop"
> Exec ["gksudo", "desktop-file-install", sPath] Wait
> PS If I change sPath to not have a space in the directory (e.g. using
> Temporary) but having a space in the filename (e.g. q w.desktop) then I
> get the same.
>
> --
> Regards,
> John
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_jan
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list