Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.misc > #283
| Path | csiph.com!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail |
|---|---|
| From | Helge <w4h@nurfuerspam.de> |
| Newsgroups | comp.lang.basic.misc |
| Subject | Re: Environment variables in Visual Basic (Vb5E, W7/64) |
| Date | Tue, 26 Jun 2012 09:59:47 +0200 |
| Organization | albasani.net |
| Lines | 26 |
| Message-ID | <op.wgh25xmn3zwgbm@w7-pc> (permalink) |
| References | <op.wggsfgtr3zwgbm@w7-pc> <ni1hu799q84b2tjpoboojui59glmpib2gr@4ax.com> <XnsA07D73035D4A1auricauricauricauric@88.198.244.100> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=iso-8859-15; format=flowed; delsp=yes |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.albasani.net QOH7kVGhCIxQcTSu0HAIB8hUwaDHKeqV+EKp5Uqh9l5FuxI3BvhcsRO6KGQBei7fnm5PVxKIp3dNkUhW1ZIm7E695oY/35ULMsqPCkUnW1NNDw2yONqMUYzF6G8yKXSM |
| NNTP-Posting-Date | Tue, 26 Jun 2012 07:59:49 +0000 (UTC) |
| Injection-Info | news.albasani.net; logging-data="huZ89IDnMWXVrxwmfWasQFB2cN3LY7cyUV6TRNU2i8qctsZNtCDBeRoyVXgIuqX6W5tBPm0JCckfOt2ikUvw/L7SgdLHVNqzr1DqiP0aVdaGGD2XlaSQcH2HxvdvSQbv"; mail-complaints-to="abuse@albasani.net" |
| User-Agent | Opera Mail/12.00 (Win64) |
| Cancel-Lock | sha1:C8SR4St689LpG95cewaMWg6GTeI= |
| Xref | csiph.com comp.lang.basic.misc:283 |
Show key headers only | View raw
Am 25.06.2012, 20:17 Uhr, schrieb Auric__ <not.my.real@email.address>:
> ralph wrote:
>
>> On Mon, 25 Jun 2012 17:10:18 +0200, Helge <w4h@nurfuerspam.de> wrote:
>>
>>> Hallo NG!
>>> I need to open PathA = "%USERPROFILE%\Documents\paper\pp.csv"
>>> Open PathA for Output as #FiNu
>>> But it does not work that easy. Any ideas? Thanks!
>>
>> The "%" delimiters are for use with shells. At the command line, in
>> batch files, Windows Shells (Explorer) etc.
>>
>> In VB use the Environ() function without the delimiters.
>> Dim sRoot As String : sRoot = Environ("userprofile")
>> PathA = PathA = sRoot & "\Documents\paper\pp.csv"
>
> No real need for the extra string:
>
> PathA = Environ("userprofile") & "\Documents\paper\pp.csv"
>
Thanks! That's it.
--
Helge, DJ1WM
Back to comp.lang.basic.misc | Previous | Next — Previous in thread | Find similar
Environment variables in Visual Basic (Vb5E, W7/64) Helge <w4h@nurfuerspam.de> - 2012-06-25 17:10 +0200
Re: Environment variables in Visual Basic (Vb5E, W7/64) ralph <nt_consulting64@yahoo.com> - 2012-06-25 10:43 -0500
Re: Environment variables in Visual Basic (Vb5E, W7/64) "Auric__" <not.my.real@email.address> - 2012-06-25 18:17 +0000
Re: Environment variables in Visual Basic (Vb5E, W7/64) Helge <w4h@nurfuerspam.de> - 2012-06-26 09:59 +0200
csiph-web