Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change default directory
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01502887
Message ID:
01503013
Vues:
46
>When downloading a file using internet explorer, selecting 'save target as', opens the last directory that was opened by windows.
>
>If i approach the same file using VFP programmatically
>
>oIE = CreateObject ("internetexplorer.application")
>oIE.NAVIGATE ("https://www.page_that_shows_the_file_i_want_to_download.com") 
>oIE.VISIBLE = .T. 
>
>
>can i control the directory choice before hand so that when i select 'save target as' the proper directory will appear
>
>CD c:\mydir has no effect
>
>btw there is no direct access to the file i want to download, it's name changes, and it is only accessible with password.
>
>
>thanks
>k

Try:
oIE = CreateObject ("internetexplorer.application")
oIE.NAVIGATE ("http://www.portalfox.com") 
oIE.VISIBLE = .T. 

*-- Change Save Directory
loWsh = CreateObject("wscript.shell")
lcDir = "E:\Software\"
loWsh.RegWrite("HKCU\Software\Microsoft\Internet Explorer\Main\Save Directory", lcDir)
loWsh = Null
Luis María Guayán
Tucumán, Argentina
________________________________
SysOp de www.PortalFox.com
Nada corre como un zorro
________________________________
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform