Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Is this correct?

19 views
Skip to first unread message

BugHunter

unread,
Dec 3, 2020, 6:31:47 PM12/3/20
to

If exist "C:\Users\John\two\map" If Not exist "C:\Users\John\one\map" rd "C:\Users\John\two\map"

--
\ / http://nieuwsgroepen.tk/
---------///--------------------------------------
/ \ Bye, BugHunter

Zaidy036

unread,
Dec 3, 2020, 8:45:52 PM12/3/20
to
On 12/3/2020 6:31 PM, BugHunter wrote:
> If exist "C:\Users\John\two\map" If Not exist "C:\Users\John\one\map" rd "C:\Users\John\two\map"
>

No. If you want an answer easy to open cmd window and type IF /?

JJ

unread,
Dec 4, 2020, 8:40:42 AM12/4/20
to
On Fri, 04 Dec 2020 00:31:02 +0100, BugHunter wrote:
> If exist "C:\Users\John\two\map" If Not exist "C:\Users\John\one\map" rd "C:\Users\John\two\map"

Yes. Assuming that "C:\Users\John\two\map" is a directory.

BugHunter

unread,
Dec 4, 2020, 9:02:31 AM12/4/20
to
JJ <jj4p...@gmail.com> schreef op Vr 4 Dec 2020 om 20:40:
> On Fri, 04 Dec 2020 00:31:02 +0100, BugHunter wrote:
>> If exist "C:\Users\John\two\map" If Not exist "C:\Users\John\one\map" rd "C:\Users\John\two\map"
>
> Yes. Assuming that "C:\Users\John\two\map" is a directory.


nap is a directory. Thank you.

Kerr-Mudd,John

unread,
Dec 4, 2020, 12:05:18 PM12/4/20
to
On Fri, 04 Dec 2020 14:00:41 GMT, BugHunter <bugh...@com.invalid>
wrote:

> JJ <jj4p...@gmail.com> schreef op Vr 4 Dec 2020 om 20:40:
>> On Fri, 04 Dec 2020 00:31:02 +0100, BugHunter wrote:
>>> If exist "C:\Users\John\two\map" If Not exist
>>> "C:\Users\John\one\map" rd "C:\Users\John\two\map"
>>
>> Yes. Assuming that "C:\Users\John\two\map" is a directory.
>
>
> nap is a directory. Thank you.
>

if it's not empty you might want "/s" on the end. But be careful!

--
Bah, and indeed, Humbug.

BugHunter

unread,
Dec 4, 2020, 12:52:32 PM12/4/20
to
Kerr-Mudd,John <nots...@127.0.0.1> schreef op Vr 4 Dec 2020 om 17:05:
Yes, I know, but at that moment the map is enpty.

Zaidy036

unread,
Dec 4, 2020, 12:56:22 PM12/4/20
to
Sorry, but you confused me by leaving a contradictory "IF" in front of
the one you wanted to use.

BugHunter

unread,
Dec 4, 2020, 1:23:49 PM12/4/20
to
Zaidy036 <Zaid...@air.isp.spam> schreef op Vr 4 Dec 2020 om 12:56:
It's okay, I have the answer and thats the main
reason. Thanks.
0 new messages