p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   Visual Basic 2015 General Discussion (http://p2p.wrox.com/visual-basic-2015-general-discussion-810/)
-   -   VBScript in Windows 10 (http://p2p.wrox.com/visual-basic-2015-general-discussion/99123-vbscript-windows-10-a.html)

PeteOlski August 8th, 2016 10:38 AM

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?


All times are GMT -4. The time now is 08:46 PM.

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.