Page 1 of 1

vbscript intellisense

Posted: Fri Feb 10, 2017 11:33 am
by boyddt_co
PrimalScript 2017, v7.3.98
32 or 64 bit version of product:
Windows 7 Enterprise, 64bit

I have the following code and my understanding is that as I'm typing strFilePath = objFile, intellisense should present options (methods) available in objFile. Am I correct and there is a problem with my installation or am I just making stuff up?

David

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder(objStartFolder)
Set objFileOutput = objFSO.OpenTextFile(strFileOutput,2)

WScript.Echo "Root folder Being Enumerated: " & objFolder.Path & vbcrlf
WScript.Echo "Files Found: " & vbCrLf
Set colFiles = objFolder.Files
For Each objFile In colFiles
intcount = intcount + 1
WScript.Echo " File: " & objFile.Name & vbCrLf
WScript.Echo " Permissions: " & vbCrLf
strOutput = strOutput & objFile.Name & ","
strFilePath = objFile.ParentPath
strFileName = objFile.Name

binFolder = False
Call get_Security(objfile,strcomputer,binFolder)
Next

Re: vbscript intellisense

Posted: Fri Feb 10, 2017 11:57 am
by Alexander Riedel
It's likely having a hiccup on the For Each statement, so it doesn't know objFiles even exists.
It's been a while since anyone looked at VBScript, so give me a few days to have a peek.

Re: vbscript intellisense

Posted: Fri Feb 10, 2017 12:13 pm
by boyddt_co
Thank you. The joys of working on really old servers. I would prefer to be using PowerShell.

David

Re: vbscript intellisense

Posted: Fri Mar 03, 2017 1:08 pm
by boyddt_co
Alexander Riedel wrote:It's likely having a hiccup on the For Each statement, so it doesn't know objFiles even exists.
It's been a while since anyone looked at VBScript, so give me a few days to have a peek.
Alexander, have you been able to make any headway on this issue?

David

Re: vbscript intellisense

Posted: Fri Mar 03, 2017 1:14 pm
by Alexander Riedel
It's scheduled to be addressed. Unfortunately I cannot promise a specific date at the moment.