|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
[vwnc] External process examplesHi,
I am strugling with the External process
API.
I want to open and continue some document from a
path with spaces.
Something like:
ExternalProcess
fork: 'start' arguments: (Array with: '"c:\My Test\AppDevGuide.pdf"'). or:
ExternalProcess
fork: 'cmd' arguments: (Array with: '/x' with: '/c' with: 'start' with: 'c:\My Test\AppDevGuide.pdf'). But these don't work.
I can do something like:
ExternalProcess shOne: 'c:\My
Test\StakePoint_1.36_Setup.exe'.
Which works and takes care of the spaces in the
path file but it still waits till the process is
finished which is not allways what I want. Often I want a do and continue
behaviour.
Does anyone has some exmples related to the use of
External process.
Regards,
_______________________________________________ vwnc mailing list vwnc@... http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
|
|
[vwnc] Net.MailMessage and "real names"How can I set the "real name" of the person sending an email using the
SimpleSMTPClient and an instance of MailMessage? For example, if my email address is xyz@... but I want it to say it's from Carl Gundel, how does that code look? Thanks, -Carl Gundel http://www.runbasic.com http://www.libertybasic.com _______________________________________________ vwnc mailing list vwnc@... http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
|
|
Re: [vwnc] Net.MailMessage and "real names"Carl Gundel wrote: > How can I set the "real name" of the person sending an email using the > SimpleSMTPClient and an instance of MailMessage? For example, if my email > address is xyz@... but I want it to say it's from Carl Gundel, how > does that code look? 'Carl Grundel <xyz@...>' ? Best regards Janko -- Janko Mivšek AIDA/Web Smalltalk Web Application Server http://www.aidaweb.si _______________________________________________ vwnc mailing list vwnc@... http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
|
|
|
|
|
|
|
|
|
|
|
Re: [vwnc] External process examples
At 05:29 AM 9/28/2008, Steven Kelly wrote:
Essentially, we have bypassed the odd code, which tries to add double-quotes to everything in the arguments collection. The odd code is clearly wrong, since it fails to quote the first argument (e.g. /x in your example). It would be fun to know what the programmer was thinking when writing it, and the accompanying comment: Well, that would be me. I suspect what I was thinking was something along the lines of "ok, this seems to work for the cases I have". We'd already noticed the excessive quoting of the command-line options - that's in AR 54659, which primarily deals with using the right encoding when shelling out under Windows. I certainly didn't know about the case of "start" treating its arguments differently if they're quoted or not. It seems to me that in this case the start can just be omitted anyway, as it's implicit in providing a data file name with an association. At least for me ExternalProcess fork: 'cmd' arguments: (Array with: '/x' with: '/c' with: 'c:\My Test\AppDevGuide.pdf'). works. --
Alan Knight [|], Engineering Manager, Cincom Smalltalk
_______________________________________________ vwnc mailing list vwnc@... http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
|
|
|
| Free Forum Powered by Nabble | Forum Help |