Sure!

--
AP

"Tom Ogilvy" <twogilvy@msn.com> a écrit dans le message de news:
%23zaXNbbgGHA.764@TK2MSFTNGP03.phx.gbl...
> maybe one more "
>
> mycmd= """C:\Documents and Settings\Marcos\Desktop\temp\x.bat"" 2006"
> ? mycmd
> "C:\Documents and Settings\Marcos\Desktop\temp\x.bat" 2006
>
> --
> Regards,
> Tom Ogilvy
>
> "Ardus Petus" <ardus.petus@laposte.net> wrote in message
> news:Ob0whJbgGHA.4276@TK2MSFTNGP03.phx.gbl...
>> You could have written:
>> mycmd= ""C:\Documents and Settings\Marcos\Desktop\temp\x.bat"" 2006"
>>
>> HTH
>> --
>> AP
>>
>> "Marcos" <marsze@yahoo.com> a écrit dans le message de news:
>> 1148749389.660671.125170@i40g2000cwc.googlegroups.com...
>> > Ardus
>> > Thanks, it did work for me as well...
>> > My real problem was calling a macro in the directory C:\Documents and
>> > Settings\Marcos\Desktop\temp.
>> > For the email i wrote c:\temp to simplify, but and as I tried with
>> > c:\temp it did work as you said.
>> >
>> > This helped me workout the solution. I was running
>> > mycmd= "C:\Documents and Settings\Marcos\Desktop\temp\x.bat 2006"
>> > RetVal = Shell(mycmd, 1)
>> > it seems a double quetes were needed for the path above.
>> > Adding:
>> > mycmd= chr$(34)+"C:\Documents and
>> > Settings\Marcos\Desktop\temp\x.bat"+chr$(34)+" 2006"
>> > did the trick.
>> > thanks for the help,
>> > Marcos
>> >

>>
>>

>
>