Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error in drive detection
Message
De
16/03/2001 02:30:10
 
 
À
16/03/2001 01:39:17
Stephanie Caragos
Ebs Accounting Software Solutions
Cagayan de Oro City, Philippines
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00485735
Message ID:
00485737
Vues:
6
>I tried detecting a drive at that valid even of my textbox and this was my command...
>
>IF ! empty(this.value)
> dirdrive=alltrim(this.value)
> oFSO = CREATEOBJECT("Scripting.FileSystemObject")
> STORE oFSO.FolderExists("&dirdrive:\") to hon
> IF hon=.f.
> ans=messagebox('This is not a valid drive or there is no disk ;
> in the drive, please try again')
> this.value=''
> RETURN 0
> ENDIF
>ENDIF
>
>however, when i tried compiling it and running it in a windows 95 environment, the createobject triggered an error. is there a way of solving this problem or is there another way of detecting a drive aside from this? by the way, i'm using visual foxpro 6 in developing the system.
>
>stephanie

Superficially it looks like the Windows Scripting Host (WSH) has not been installed on that machine. It was not a native part of Windows 95.

IIRC from reading other threads, you can install WSH by installing IE 4.0 with the Active Desktop option.

Ed Rauh has created a number of detailed messages here on this topic. You could:

- search messages here
- look up Ed & George Tasker's 5-part articles on WSH at www.vfug.org
- look here in the FAQs
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform