By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,694 Members | 1,845 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,694 IT Pros & Developers. It's quick & easy.

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

P: 1
Hello,

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
Share this Question
Share on Google+
1 Reply


P: 1
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.