Search found 7 matches

by ahzong
21 Aug 2018 09:04
Forum: DOS Batch Forum
Topic: What does & mean?
Replies: 7
Views: 1132

Re: What does & mean?

Thank you very much! :D
by ahzong
21 Aug 2018 07:43
Forum: DOS Batch Forum
Topic: What does & mean?
Replies: 7
Views: 1132

What does & mean?

As simple as the subject says, what does an ampersand (&) mean in batch programming?
All I know is it is located between two lines or commands, but I still don't get what it does exactly, and how it is used practically in code.
Thanks for answering!
by ahzong
19 Aug 2018 16:36
Forum: DOS Batch Forum
Topic: Script to delete Temp folders in a click
Replies: 3
Views: 716

Re: Script to delete Temp folders in a click

Hmm... It seems I need to get used to using /? myself. Strange enough rmdir deletes everything instead of empty directories. It is different than what I googled, on the Wikipedia. I am still quite new to this batch programming thing, I hope to get as much help as possible. I would try to use /help a...
by ahzong
19 Aug 2018 08:37
Forum: DOS Batch Forum
Topic: Script to delete Temp folders in a click
Replies: 3
Views: 716

Script to delete Temp folders in a click

Well actually, a double-click, on a batch script found online, as shown below: cd C:\Users\USER\Appdata\Local\Temp del * /s /q rmdir /s /q "C:\Users\USER\Appdata\Local\Temp" I have no problem understanding this script until we reached the third line. As far as I know, rmdir means to remove empty dir...
by ahzong
19 Aug 2018 04:38
Forum: DOS Batch Forum
Topic: Switches /s /q
Replies: 2
Views: 468

Re: Switches /s /q

Oh, that's very helpful! Thanks a lot.
by ahzong
19 Aug 2018 03:00
Forum: DOS Batch Forum
Topic: Switches /s /q
Replies: 2
Views: 468

Switches /s /q

I found this line of code:

Code: Select all

del /s /q C:\windows\temp\*.tmp
Could anyone explain to me what is code does? I guess it deletes everything in the temp folder.
I can't seem to understand /s and /q especially, nor to make sure they are called "switches".
by ahzong
04 Aug 2018 23:09
Forum: DOS Batch Forum
Topic: New to batch programming
Replies: 2
Views: 895

New to batch programming

Here is a line of code which deletes all files in the current directory:

Code: Select all

DEL . DR
As far as I know,

Code: Select all

DEL
means delete,

Code: Select all

.
means the current directory.
What does

Code: Select all

DR
means?