Re: Windows Share Path

2017-12-03 Thread rjframe via Digitalmars-d-learn
On Sun, 03 Dec 2017 16:42:46 +, vino wrote: > Question: > Is there a way to map network drive in windows using D code, similar to > the windows command such as "net use" or "pushd" or powershell command > New-PSDrive.? > > From, > Vino.B There's WNetAddConnection2[1] and WNetAddConnection3[2

Re: Windows Share Path

2017-12-03 Thread vino via Digitalmars-d-learn
On Sunday, 3 December 2017 at 01:27:40 UTC, codephantom wrote: On Saturday, 2 December 2017 at 14:23:48 UTC, Vino wrote: Hi, Even tried the Option "Run with Highest Privilege" but no luck. and also tried with option "Configure for : Windows Vista , Windows Server 2008" From, Vino.B You h

Re: Windows Share Path

2017-12-02 Thread codephantom via Digitalmars-d-learn
On Saturday, 2 December 2017 at 14:23:48 UTC, Vino wrote: Hi, Even tried the Option "Run with Highest Privilege" but no luck. and also tried with option "Configure for : Windows Vista , Windows Server 2008" From, Vino.B You haven't accidently ticked the 'Do not store password' option? Th

Re: Windows Share Path

2017-12-02 Thread rjframe via Digitalmars-d-learn
On Sat, 02 Dec 2017 14:16:17 +, Vino wrote: > Hi, > >The script is schedule using a domain user id(domain\user id), > and the windows share are mapped using the same user id /password and > ran the scheduled task by login with the same domain user(Not > Administrator) , the script execute

Re: Windows Share Path

2017-12-02 Thread Vino via Digitalmars-d-learn
On Saturday, 2 December 2017 at 14:16:17 UTC, Vino wrote: On Saturday, 2 December 2017 at 13:05:37 UTC, rjframe wrote: [...] Hi, The script is schedule using a domain user id(domain\user id), and the windows share are mapped using the same user id /password and ran the scheduled task by l

Re: Windows Share Path

2017-12-02 Thread Vino via Digitalmars-d-learn
On Saturday, 2 December 2017 at 13:05:37 UTC, rjframe wrote: On Sat, 02 Dec 2017 07:48:14 +, Vino wrote: On Saturday, 2 December 2017 at 05:08:27 UTC, Vino wrote: [...] Even tried with the below code, it works manually but not via Windows scheduler with option "Run whether user is logge

Re: Windows Share Path

2017-12-02 Thread rjframe via Digitalmars-d-learn
On Sat, 02 Dec 2017 07:48:14 +, Vino wrote: > On Saturday, 2 December 2017 at 05:08:27 UTC, Vino wrote: >> Hi All, >> >> Request your help, I have samll program which validates the >> file path, the script run perfectly when i run it manually, but if i >> run it via windows task scheduler i

Re: Windows Share Path

2017-12-02 Thread codephantom via Digitalmars-d-learn
On Saturday, 2 December 2017 at 07:48:14 UTC, Vino wrote: Even tried with the below code, it works manually but not via Windows scheduler with option "Run whether user is logged on or not" Are you using appropriate credentials in the scheduled task?

Re: Windows Share Path

2017-12-01 Thread Vino via Digitalmars-d-learn
On Saturday, 2 December 2017 at 05:08:27 UTC, Vino wrote: Hi All, Request your help, I have samll program which validates the file path, the script run perfectly when i run it manually, but if i run it via windows task scheduler i am getting "Invalid File Path or Path do not Exist", The pa