|
-
Apr 4th, 2004, 01:33 PM
#1
Thread Starter
New Member
Process.Start with spaces in path
Hello
I am trying to get WordPad to open a document. I was simply using Process.Start("wordpad.exe", path) but that gave me an error when the path had spaces in it. WordPad would open saying it couldn't find "C:\Program".
I tried doing
path = """" & path & """"
before opening but now wordpad just says "Failed to open document".
I'm in VB.NET
anyone ever have this problem?
Thanks in advance
ereeno
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|