Click here to Skip to main content
15,912,897 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Copying Files and it's containing files to another location Pin
CornElvis10-Jul-08 5:42
CornElvis10-Jul-08 5:42 
GeneralRe: Copying Files and it's containing files to another location Pin
jzonthemtn10-Jul-08 6:44
jzonthemtn10-Jul-08 6:44 
GeneralRe: Copying Files and it's containing files to another location Pin
Luc Pattyn10-Jul-08 7:10
sitebuilderLuc Pattyn10-Jul-08 7:10 
GeneralRe: Copying Files and it's containing files to another location Pin
CornElvis11-Jul-08 2:40
CornElvis11-Jul-08 2:40 
Questionhow to draw a road map in vb 2008? Pin
dunkin_ina9-Jul-08 22:06
dunkin_ina9-Jul-08 22:06 
AnswerRe: how to draw a road map in vb 2008? Pin
jzonthemtn10-Jul-08 4:17
jzonthemtn10-Jul-08 4:17 
GeneralRe: how to draw a road map in vb 2008? Pin
dunkin_ina13-Jul-08 22:07
dunkin_ina13-Jul-08 22:07 
QuestionCannot open external file with space character in filename or path. Pin
Roullakis9-Jul-08 20:48
Roullakis9-Jul-08 20:48 
Hi Smile | :)

I'm trying to open an external file, either a .pdf or .doc programmatically from VB. It seems that VB gets confused when there is a space character in the filename or path string.


The following works perfectly:

Process.Start ("acrord32", "C:\Manuals\UserManual.pdf")

and also

Process.Start ("C:\Program Files\Adobe\Reader 8.0\Reader\acrord32 " , "C:\Manuals\UserManual.pdf")


However, the following gives an error message that it cannot find the file.

Process.Start ("acrord32", "C:\Manuals\User Manual.pdf")


I've experimented a bit with multiple scenarios, including trying to open a file in word. It seems that VB accepts a path with a space character in starting a process (e.g. Adobe Reader), however it gets confused when sending the path and filename of the external file to open. In particular, when trying to open a word file, the filename is truncated at the point of the space character, e.g. the "User Manual.doc" becomes "User.doc". I've tried multiple walkarounds such as using %20, [ ], _11, etc without effect.

Any help appreciated...
AnswerRe: Cannot open external file with space character in filename or path. Pin
Ashfield9-Jul-08 21:31
Ashfield9-Jul-08 21:31 
GeneralRe: Cannot open external file with space character in filename or path. Pin
Roullakis9-Jul-08 22:00
Roullakis9-Jul-08 22:00 
GeneralRe: Cannot open external file with space character in filename or path. Pin
Guffa10-Jul-08 0:38
Guffa10-Jul-08 0:38 
GeneralRe: Cannot open external file with space character in filename or path. Pin
Ashfield10-Jul-08 1:20
Ashfield10-Jul-08 1:20 
GeneralRe: Cannot open external file with space character in filename or path. Pin
Guffa10-Jul-08 4:01
Guffa10-Jul-08 4:01 
AnswerRe: Cannot open external file with space character in filename or path. Pin
Ajay.k_Singh9-Jul-08 21:35
Ajay.k_Singh9-Jul-08 21:35 
GeneralRe: Cannot open external file with space character in filename or path. Pin
Roullakis9-Jul-08 21:57
Roullakis9-Jul-08 21:57 
QuestionCHM model program using VB.Net[2005] Pin
kvwarun9-Jul-08 19:53
kvwarun9-Jul-08 19:53 
QuestionError while showing report Pin
Amit Battan Ror9-Jul-08 4:02
Amit Battan Ror9-Jul-08 4:02 
AnswerRe: Error while showing report Pin
Christian Graus9-Jul-08 4:13
protectorChristian Graus9-Jul-08 4:13 
AnswerRe: Error while showing report Pin
Paul Conrad9-Jul-08 13:26
professionalPaul Conrad9-Jul-08 13:26 
AnswerRe: Error while showing report Pin
Rupesh Kumar Swami9-Jul-08 20:12
Rupesh Kumar Swami9-Jul-08 20:12 
GeneralRe: Error while showing report Pin
Amit Battan Ror9-Jul-08 20:29
Amit Battan Ror9-Jul-08 20:29 
GeneralRe: Error while showing report Pin
Rupesh Kumar Swami9-Jul-08 21:37
Rupesh Kumar Swami9-Jul-08 21:37 
QuestionWindows application is having problems in connecting to our server. Pin
kjalandoon8-Jul-08 22:08
kjalandoon8-Jul-08 22:08 
AnswerRe: Windows application is having problems in connecting to our server. Pin
Eduard Keilholz9-Jul-08 0:36
Eduard Keilholz9-Jul-08 0:36 
GeneralRe: Windows application is having problems in connecting to our server. Pin
kjalandoon9-Jul-08 0:49
kjalandoon9-Jul-08 0:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.