Wrox Programmer Forums
|
Visual Basic 2015 General Discussion For any discussions about Visual Basic 2015 topics which aren't related to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2015 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 8th, 2016, 10:38 AM
Registered User
 
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?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Enable or Disable Desktop Composition in Windows 10 AjitKhodke VB How-To 0 May 5th, 2016 03:19 AM
Vbscript Code Problem - Click on Activate open windows (web page) yitch VBScript 0 January 30th, 2013 09:20 AM
Chapter 10, listing 10-10-app kiwibrit BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9 2 August 18th, 2009 04:21 AM
Windows Media Player 10 gigamars04 VB.NET 1 December 17th, 2007 12:12 AM
Using Windows Media Player 10 in ASP.Net 1.1 pritambaldota ASP.NET 1.0 and 1.1 Professional 3 August 16th, 2006 12:13 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.