Search found 10 matches
- 01 May 2020 17:27
- Forum: DOS Batch Forum
- Topic: Restart Computers and Send a Log
- Replies: 3
- Views: 3998
Re: Restart Computers and Send a Log
Thanks for the code. Someone suggested I put the batch file onto a server that doesn't shut off. Unfortunately on my network I do not have msg.exe installed and cannot instal it due to the type of network I am on. As for the log on bootup I could maybe create a batch file to copy the event log on st...
- 30 Apr 2020 09:11
- Forum: DOS Batch Forum
- Topic: Restart Computers and Send a Log
- Replies: 3
- Views: 3998
- 27 Apr 2020 15:16
- Forum: DOS Batch Forum
- Topic: Restart Computers and Send a Log
- Replies: 3
- Views: 3998
Restart Computers and Send a Log
Hello, I am in need of assistance. I'm trying to make a batch file to restart computers on my network and send a log of what computers successfully restarted and what computers were not. I know to restart the command is shutdown -r but I'm not sure how to get it to send a log file. A quick rundown I...
- 05 Apr 2020 17:35
- Forum: DOS Batch Forum
- Topic: Copy CD contents with CD name
- Replies: 16
- Views: 11598
Re: Copy CD contents with CD name
Alright. Give this a go: @echo off &setlocal for /f "delims=" %%i in ('wmic volume WHERE "Caption='D:\\'" GET Label /value') do for /f "delims=" %%j in ("%%i") do set "%%j" robocopy "D:" "%userprofile%\Desktop\%Label%" /e /r:0 /w:0 Steffen That did the trick. Thank you for the help and sorry for al...
- 05 Apr 2020 16:49
- Forum: DOS Batch Forum
- Topic: Copy CD contents with CD name
- Replies: 16
- Views: 11598
Re: Copy CD contents with CD name
Run that code and tell us if one of these two methods captured the name. @echo off setlocal echo 1. for /f "delims=" %%i in ('wmic volume WHERE "Caption='D:\\'" GET Label /value') do for /f "delims=" %%j in ("%%i") do set "%%j" echo %Label% endlocal setlocal echo 2. for /f "delims=" %%i in ('findst...
- 05 Apr 2020 13:14
- Forum: DOS Batch Forum
- Topic: Copy CD contents with CD name
- Replies: 16
- Views: 11598
- 05 Apr 2020 10:31
- Forum: DOS Batch Forum
- Topic: Copy CD contents with CD name
- Replies: 16
- Views: 11598
- 04 Apr 2020 13:06
- Forum: DOS Batch Forum
- Topic: Copy CD contents with CD name
- Replies: 16
- Views: 11598
Re: Copy CD contents with CD name
CDs are usually in the D: drive and they are generally the same nomenclature 'N4660078013' just changing the numbers per CD. That still doesn't answer the question of where the script can read the name. Steffen I'm not sure what you are asking. I generally have my batch files on my desktop and run ...
- 04 Apr 2020 10:00
- Forum: DOS Batch Forum
- Topic: Copy CD contents with CD name
- Replies: 16
- Views: 11598
Re: Copy CD contents with CD name
CDs are usually in the D: drive and they are generally the same nomenclature 'N4660078013' just changing the numbers per CD.
- 03 Apr 2020 14:43
- Forum: DOS Batch Forum
- Topic: Copy CD contents with CD name
- Replies: 16
- Views: 11598
Copy CD contents with CD name
I need a little help. I'm trying to make a batch file to make my job a little easier. I have to upload a large amount of CDs and these CDs need to be put into each of their own folders with their respective CD names/labels. Going one CD at a time and naming each folder as the CD can be a huge pain i...