View Single Post
  #1 (permalink)  
Old August 8th, 2016, 10:38 AM
PeteOlski PeteOlski is offline
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2016
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default VBScript in Windows 10

In a VBA add-in to a CAM program, I have the following lines:

Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile(strFilepath, True)

This code works in previous versions of Windows, including Windows 7. (Never tried it in Windows 8). In Windows 10, however, the subroutine just quits when it hits these lines. I have the scrrun.dll referenced in my project.

I've been searching the internet to see what might have changed in Windows 10 that I might have to change the code somehow. Can anyone point me in the right direction to resolve this?
Reply With Quote