thanks its working in local this is my code..

Dim strpath As String = Server.MapPath("~/SiteImages/")

strpath = strpath + "singlebed.jpg"

strpath = """" + strpath + """" ' This line encloses the filepath in a
double quote - Checked with C# - Pls check it up in VB

Dim myprocess As New System.Diagnostics.Process

myprocess.StartInfo.FileName = "mspaint"

myprocess.StartInfo.Arguments = strpath

myprocess.Start()
but when i host this page on server ie: on live its not working why?
Whats the problem ? how to make it work..
On Fri, Apr 24, 2009 at 4:38 PM, Mike Fry <[email protected]> wrote:

>
> Venkatu wrote:
>
>>
>>  Dim strpath As String = Server.MapPath("~/Images")
>>        strpath = strpath + "2_type_a.jpg"
>>        Dim myprocess As New System.Diagnostics.Process
>>        myprocess.StartInfo.FileName = "mspaint"
>>        myprocess.StartInfo.Arguments = strpath
>>        myprocess.Start()
>>
>>  When i check the strpath it shows correct path ie:
>>
>> "C:\Documents and Settings\User\Desktop\Maitreya\Images\2_type_a.jpg"
>>
>> But at last it shows this  C:/Document.bmp was not found
>>
>>
> You MUST put quotation marks around a pathname if it includes spaces.
>
> --
> Regards,
> Mike Fry
> Johannesburg.
>

Reply via email to