Search found 7 matches
- 21 Aug 2018 09:04
- Forum: DOS Batch Forum
- Topic: What does & mean?
- Replies: 7
- Views: 6840
Re: What does & mean?
Thank you very much!
- 21 Aug 2018 07:43
- Forum: DOS Batch Forum
- Topic: What does & mean?
- Replies: 7
- Views: 6840
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!
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!
- 19 Aug 2018 16:36
- Forum: DOS Batch Forum
- Topic: Script to delete Temp folders in a click
- Replies: 3
- Views: 3503
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...
- 19 Aug 2018 08:37
- Forum: DOS Batch Forum
- Topic: Script to delete Temp folders in a click
- Replies: 3
- Views: 3503
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...
- 19 Aug 2018 04:38
- Forum: DOS Batch Forum
- Topic: Switches /s /q
- Replies: 2
- Views: 2884
Re: Switches /s /q
Oh, that's very helpful! Thanks a lot.
- 19 Aug 2018 03:00
- Forum: DOS Batch Forum
- Topic: Switches /s /q
- Replies: 2
- Views: 2884
Switches /s /q
I found this line of code:
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".
Code: Select all
del /s /q C:\windows\temp\*.tmp
I can't seem to understand /s and /q especially, nor to make sure they are called "switches".
- 04 Aug 2018 23:09
- Forum: DOS Batch Forum
- Topic: New to batch programming
- Replies: 2
- Views: 3027
New to batch programming
Here is a line of code which deletes all files in the current directory:
As far as I know, means delete, means the current directory.
What does means?
Code: Select all
DEL . DR
Code: Select all
DEL
Code: Select all
.
What does
Code: Select all
DR