Forum Discussion

lwwb's avatar
lwwb
New Contributor
12 years ago

Create textfile on mapped network drive

With Windows 8 I'm not able to create a textfile on a mapped network drive. The code worked on Windows 7 and before that, but now TC tells me it cannot find the path. As the path is there, I assume Windows 8 doesn't allow him to write on that location. Furthermore, running a test.js with the same lines manually did work:



var Filename = "Q:\\updatefiles.lock"

var sFSO = "Scripting.FileSystemObject"

var fso = new ActiveXObject( sFSO )

var TF = fso.CreateTextFile(Filename, true)

TF.Close()



Anyone a clue how I can give TC9 the same rights?
  • lwwb's avatar
    lwwb
    New Contributor
    It seems that I solved the problem. At the end it was an UAC setting, but one that isn't changed by moving the slider in the UAC settings windows.



    I had to dig into the gpedit.msc. See this website for more explanation, it is about option 3 (Disable UAC via Group Policy):



    Changing UAC Settings