Discussion:
Is this correct?
(too old to reply)
BugHunter
2020-12-03 23:31:02 UTC
Permalink
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
2020-12-04 01:45:51 UTC
Permalink
Post by BugHunter
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 /?
Zaidy036
2020-12-04 17:56:20 UTC
Permalink
Post by Zaidy036
Post by BugHunter
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 /?
Sorry, but you confused me by leaving a contradictory "IF" in front of
the one you wanted to use.
BugHunter
2020-12-04 18:19:42 UTC
Permalink
Post by Zaidy036
Post by Zaidy036
Post by BugHunter
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 /?
Sorry, but you confused me by leaving a contradictory "IF" in front of
the one you wanted to use.
It's okay, I have the answer and thats the main
reason. Thanks.
--
\ / http://nieuwsgroepen.tk/
---------///--------------------------------------
/ \ Bye, BugHunter
JJ
2020-12-04 13:40:39 UTC
Permalink
Post by BugHunter
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
2020-12-04 14:00:41 UTC
Permalink
Post by JJ
Post by BugHunter
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.
--
\ / http://nieuwsgroepen.tk/
---------///--------------------------------------
/ \ Bye, BugHunter
Kerr-Mudd,John
2020-12-04 17:05:16 UTC
Permalink
Post by BugHunter
Post by JJ
Post by BugHunter
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
2020-12-04 17:49:38 UTC
Permalink
Post by Kerr-Mudd,John
Post by BugHunter
Post by JJ
Post by BugHunter
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!
Yes, I know, but at that moment the map is enpty.
--
\ / http://nieuwsgroepen.tk/
---------///--------------------------------------
/ \ Bye, BugHunter
Loading...