Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.visual.misc > #265
| From | Leo <ttdhead@gmail.com> |
|---|---|
| Newsgroups | microsoft.public.vb.general.discussion, comp.lang.basic.visual.misc |
| Subject | Splitting a string containg filename+path and arguemnts |
| Followup-To | microsoft.public.vb.general.discussion, comp.lang.basic.visual.misc |
| Date | 2011-06-15 22:59 +1000 |
| Organization | A noiseless patient Spider |
| Message-ID | <itaab6$n61$1@dont-email.me> (permalink) |
Cross-posted to 2 groups.
Followups directed to: microsoft.public.vb.general.discussion, comp.lang.basic.visual.misc
I am writing a Shell() replacement that I intend to be a drop in replacement. I am using ShellExecuteEx so I can parse a n image or text file in. The problem comes with spliting the arguements from the path+filename, what is the best way to split them assuming possible paths with spaces that aren't quoted. An example that works with Shell() and WinExec (I know I shouldn't be using it) but I strugle with spliting is C:\Program Files\Windows NT\Accessories\wordpad.exe C:\Users\username\Documents\somertf.rtf . PathRemoveArgs gets confused and cuts the path at the space in "Program Files". -- ClassicVB Users Regroup! comp.lang.basic.visual.misc Free usenet access at http://www.eternal-september.org
Back to comp.lang.basic.visual.misc | Previous | Next — Next in thread | Find similar
Splitting a string containg filename+path and arguemnts Leo <ttdhead@gmail.com> - 2011-06-15 22:59 +1000 Re: Splitting a string containg filename+path and arguemnts Deanna Earley <dee.earley@icode.co.uk> - 2011-06-15 15:21 +0100 Re: Splitting a string containg filename+path and arguemnts Karl E. Peterson <karl@exmvps.org> - 2011-06-15 11:14 -0700
csiph-web