🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: be.comp.programming
7 messages
7 total messages Started by Cliff Beeckman Sat, 23 Aug 2003 09:27
Hoe controleren of bestand reeds bestaat?
#4356
Author: Cliff Beeckman
Date: Sat, 23 Aug 2003 09:27
6 lines
1264 bytes
Hoe kan ik ervoor zorgen dat mijn programma in een speciefieke map zoekt of
een bepaald bestand reeds bestaat? Ik werk met VB6.

Alvast bedankt,

Cliff Beeckman.
Re: Hoe controleren of bestand reeds bestaat?
#4358
Author: Billyke
Date: Sat, 23 Aug 2003 13:30
18 lines
1533 bytes
"Cliff Beeckman" <cliffbeeckman@pandora.be> wrote in message
news:MrG1b.82420$F92.8975@afrodite.telenet-ops.be...
> Hoe kan ik ervoor zorgen dat mijn programma in een speciefieke map zoekt
of
> een bepaald bestand reeds bestaat? Ik werk met VB6.
>
> Alvast bedankt,
>
> Cliff Beeckman.
>
>

If Dir("c:\test.txt") = "" Then
        MsgBox "bestand bestaat niet"
    Else
        MsgBox "bestand bestaat"
    End If
Re: Hoe controleren of bestand reeds bestaat?
#4359
Author: Luc Kumps
Date: Sat, 23 Aug 2003 14:00
14 lines
1579 bytes
"Cliff Beeckman" <cliffbeeckman@pandora.be> wrote in message
news:MrG1b.82420$F92.8975@afrodite.telenet-ops.be...
> Hoe kan ik ervoor zorgen dat mijn programma in een speciefieke map zoekt
of
> een bepaald bestand reeds bestaat? Ik werk met VB6.
>

  Dim fso As FileSystemObject
  Set fso = CreateObject("Scripting.FileSystemObject")
  if fso.FileExists("C:\data\mijnfile.txt") then


Luc K
Re: Hoe controleren of bestand reeds bestaat?
#4362
Author: KLinZ
Date: Sat, 23 Aug 2003 15:41
16 lines
1714 bytes
Jawade wrote:

>> Hoe kan ik ervoor zorgen dat mijn programma in een speciefieke map
>> zoekt of
>> een bepaald bestand reeds bestaat? Ik werk met VB6.
>
> Zoiets?

<snip on error resume next gedoe>

Bah! Zet er dan op z'n minst een ELSE-tak bij voor het geval er een andere
fout dan #53 (53 what?) zich voordoet. Maar zelfs dan is het een zeer
dubieuze oplossing. VB schijnt ook niet zoiets te kennen als FileExists().

-- 
www.zenobits.com
Re: Hoe controleren of bestand reeds bestaat?
#4363
Author: Billyke
Date: Sat, 23 Aug 2003 18:51
23 lines
1831 bytes
"KLinZ" <klinz@NOSPAMzenobitsSPAMNO.com.invalid> wrote in message
news:AWL1b.24509$KF1.318592@amstwist00...
> Jawade wrote:
>
> >> Hoe kan ik ervoor zorgen dat mijn programma in een speciefieke map
> >> zoekt of
> >> een bepaald bestand reeds bestaat? Ik werk met VB6.
> >
> > Zoiets?
>
> <snip on error resume next gedoe>
>
> Bah! Zet er dan op z'n minst een ELSE-tak bij voor het geval er een andere
> fout dan #53 (53 what?) zich voordoet. Maar zelfs dan is het een zeer
> dubieuze oplossing. VB schijnt ook niet zoiets te kennen als FileExists().
>
> -- 
> www.zenobits.com
>

De standaard VB functie Dir() doet wat FileExixts() zou moeten doen, het
bestaat dus wel...
Re: Hoe controleren of bestand reeds bestaat?
#4364
Author: Opherian
Date: Sun, 24 Aug 2003 01:10
69 lines
2677 bytes
US troops may stay in Iraq indefinitely
By Peter Spiegel in Washington
Published: August 21 2003 23:57 |
Last Updated: August 21 2003 23:57


The US commander in charge of all
forces in Iraq said on Thursday American
troops might not be brought home once
international peacekeepers are deployed
to the war-torn country, a reversal that means
150,000 US soldiers may stay in Iraq indefinitely.


General John Abizaid,
the new head of US central command,

said foreign troops and indigenous
Iraqi forces would gradually take over
internal security duties from American soldiers,
but added US troops would then be redeployed
for a "more aggressive posture on external duties",
such as securing borders.

"It depends on the security situation,"

Gen Abizaid said of the role
of foreign peacekeepers.

"It doesn't necessarily mean that additional
foreign troops would cause a corresponding
drawdown of American forces."

The Cencom chief's comments are a
clear break from previous Pentagon
statements on the status of American
deployments.

General John Keane,
the acting chief of staff of the US army,
told a congressional hearing last month
that a Polish-led division in southern Iraq
would replace 9,000 US marines this fall,
and that once another foreign division arrived

 - the US has contacted India, Pakistan and
   Turkey about a division-sized force -

four brigades,
or approximately 20,000 troops,
from the US army would be replaced.

"I believe that that's exactly the
purpose of getting foreign troops in,"

said Paul Wolfowitz,

the deputy defence secretary,
when asked at the same congressional
hearing if American forces would be
reduced when foreign troops arrived.

"We are trying to get other people to fill in for us.

We're trying to get Iraqis to fill in for us."

Donald Rumsfeld, defence secretary,
has tried to remain circumspec
The Rabbi Stiffkugel (Opherian@aol.com)
Re: Hoe controleren of bestand reeds bestaat?
#4365
Author: Opherian
Date: Sun, 24 Aug 2003 03:59
20 lines
1489 bytes

<bgsound
src=3D"http://www.angelfire.com/mb2/memberofheart/All4You/ChangeMyHeart.mi=
d"
autostart=3D"true" loop=3D"1">


The true problem lies in the hearts and thoughts of men," says Albert
Einstein. "It is not a physical, but ethical one. What terrifies us is
not the explosive force of the atomic bomb, but the power of the
wickedness of the human heart." Einstein was right.



Who understands better the depth of God's unconditional love? The one
who has been forgiven much? Or, the one forgiven little? Well, in
truth-and I think Jesus would agree-the latter category does not really
exist.
The Rabbi Stiffkugel (Opherian@aol.com)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads