Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Wscript
Message
From
23/07/2018 06:07:42
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Using Wscript
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows Server 2012 R2
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01661319
Message ID:
01661319
Views:
94
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
Next
Reply
Map
View

Click here to load this message in the networking platform