Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Wscript
Message
De
23/07/2018 06:07:42
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Using Wscript
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows Server 2012 R2
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01661319
Message ID:
01661319
Vues:
96
Hello comunity,

I try to create a prg using wscript.shell to resize image from original path to another path an file name:
my code are:
Local ox
Local LcOriFile as String
Select ST
LcOriFile = Alltrim(JustStem(st.imagem))
LcExtFile = JustExt(st.imagem)

oX=CreateObject("wscript.shell")
oX.run("C:\Users\Luis Santos\Downloads\ImageMagick-7.0.8-7-portable-Q16-x86\magick convert" , "C:\Users\Luis Santos\Pictures\" + LcOriFile + "." + "lxExtFile  ;
-resize 10% " , "C:\Users\Luis Santos\Pictures\" + LcOriFile + "_ZIP." + " LcExtFile " , 4, .T.)
but when i running my prg this error occur:
Code: 1426
Line: 13
Message1: OLE error code 0x8002000e: Invalid number of parameter.

could someone give me help.
May thanks,
Best regards
Ls
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform