Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Debugging VBscript - How to Display Data While Executing?

Status
Not open for further replies.

JohnBates

MIS
Feb 27, 2000
1,995
US
hi experts,

I have this ActiveX Task in a DTS package.

Temporarily, just while debugging this, I want to display certain pieces of data while it is executing. Can I use msgbox ? How can I display/print file names?
Thanks, John



Function Main()
Dim fso, folder

set fso = CreateObject("scripting.FileSystemObject")
set folder = fso.getfolder("\\GM\C$\sys\Common\Scanned\to_be_added_to_website_TEST\")

' ?? How to display file name, etc within this loop ?
For Each file in folder.files

next

End Function




 
OK, I got it.

The folder didn't have any files, so that's why I wasn't seeing the msgbox appear !
After copying some files into the folder...

Msgbox file.name shows each file name as it loops

Duh !
John


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top