467,150 Members | 1,123 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,150 developers. It's quick & easy.

Open file in explorer with process.start("explorer.exe ...


The following question is about the name of file, with commas and periods, using VB.net 2005 when I try to use the process.start instruction

I can open a file in explorer with
Expand|Select|Wrap|Line Numbers
  1. process.start("explorer.exe", "/n,/e,/select" & fullpath)
but I do not know how to open the files when the name is some thing like "xxxxxx, yyyy - aaaa -bbbb.pdf" The letters are any letters.

When I try to execute the command

Expand|Select|Wrap|Line Numbers
  1. process.start("explorer.exe", "/n,/e,/select C:\temp\xxxxxx, yyyy - aaaa -bbbb.pdf")
it shows that the yyyy - aaaa -bbbb.pdf is not a file or is not a directory.

How can I construct the instruction?

Thanks a lot
Sep 10 '07 #1
  • viewed: 3730
1 Reply
process.start("explorer.exe", "/n,/e,/select C:\temp\""xxxxxx, yyyy - aaaa -bbbb.pdf""")

its that easy...
Sep 5 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Daniel Billingsley | last post: by
2 posts views Thread by news.bellatlantic.net | last post: by
7 posts views Thread by farsheed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.