It appears that you're using a .VBS file, but you said you set a reference
to Windows Scripting. I confused about where you set the reference. Are
you trying to do this from Visual Basic or WSH? If you're doing this from
Visual Basic you don't have the Global WScript object.
=================================
Kyle M. Burns, MCSD, MCT
ECommerce Technology Manager
Centra Credit Union
kburns@c...
>> -----Original Message-----
>> From: Joyful Joyful [mailto:joyful0@h...]
>> Sent: Tuesday, December 18, 2001 10:19 AM
>> To: professional vb
>> Subject: [pro_vb] Re: Object Required Using Wshell
>>
>>
>>
>>
>> Hi;
>>
>> I tried to create an object using window scripting (I also set the
>> reference to Window Scripting), but system displayed "OBJECT
>> REQUIRED" when
>> I execute it. Could someone advise me what should I do to
>> overcome this
>> problem (I have no single clue on the problem).
>>
>> Thanks
>>
>> ----------------- Script ------------------------
>>
>> Dim Wshell
>> Set wshShell = Wscript.CreateObject("Wscript.Shell")
>> Set wshShell = CreateObject("Wscript.Shell")
>> Get %windir% & %temp% directories
>> windir = wshShell.Environment.Item("WINDIR")
>> tmpdir = wshShell.Environment.Item("TEMP")
>>
>> 'Check for arguments, a File Transfer Protocol isn't very
>> useful without
>> 'files to transfer
>> If Wscript.arguments.Count < 1 Then
>>
>> MsgBox "Place this file in your SendTo folder, or drag &
>> drop file to
>> upload.", 1, "No input, no output - ya dig?"
>>
>> Wscript.Quit
>> End If
>>
>> Main
>>
>> Set wshShell = Nothing
>>
>>
>> _________________________________________________________________
>> Get your FREE download of MSN Explorer at
>> http://explorer.msn.com/intl.asp.
>>
>>
>> $subst('Email.Unsub').
>>