Command line, how can i send this???

mtheriault2000

Well-known Member
Joined
Oct 23, 2008
Messages
826
Hello to all

I got a command line that i can use to do a capture screen procees. This line is working fine when placed directly on the execute box in the Windows start menu

"C:\Program Files\HyperSnap 6\HprSnap6.exe" -snap:x4:y80:w1675:h880 -hidden -quicksave,1,1,999999 -save:jpg "C:\Documents and Settings\Martin\Mes documents\Bourse\Sonray_Graphique\Graphique_2\Sonraysnap.jpg"

How can i sent it via a macro. I have tried with Shell function as i do with others, but this line contain some space and Excel does no like it ( ithink the problem is arround that). How can i resolve this macro

Martin
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Re: Command line, how can i send this??? (Resolve)

Hi I resolve the problem by adding CHR(34) where i needed the " " " quote mark

Sub Open_hypersnap()
Dim hypersnap As String

hypersnap = Shell(Chr(34) & "C:\Program Files\HyperSnap 6\HprSnap6.exe" & Chr(34) & " -snap:x4:y80:w1675:h880 -hidden -quicksave,1,1,999999 -save:jpg " & Chr(34) & "C:\Documents and Settings\Martin\Mes documents\Bourse\Sonray_Graphique\Graphique_2\Sonraysnap.jpg" & Chr(34))
End Sub


Martin
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,917
Members
449,093
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top