กระดานสนทนาทั้งหมด > ฟอรัม Steam > Help and Tips > รายละเอียดกระทู้
กระทู้นี้ได้ถูกล็อกแล้ว
Shutdown steam when download completes - Guide.
Just said I would post this here as after a long search I couldn't find a single methodology that worked for me. "Steamwatcher" didn't detect any downloads at all, the power shell method just decided to shut down the PC oven when downloads were ongoing.. etc etc..

So here is my solution which revolves around the fact that steam doesn't create the final game folder until after the download has completed:

[SNIP] Much simpler solution. No external programs needed, just a simple batch file.

1. Start program download in steam.

2. Create and run the following batch file. Change folder its checking if you have moved your steam folder otherwise it should work as is. Currently its set to check every 10 minutes. Edit the timeout value to suit yourself if you wish.

SteamDownloadingWatcher.bat:

@ECHO OFF ::Check if steam downloading folder is empty. :MAIN for /F %%i in ('dir /b "C:\Program Files (x86)\Steam\steamapps\downloading"') do ( goto ACTIVE ) goto INACTIVE :: downloading folder not empty therefore download still ongoing - loop to main. :ACTIVE timeout /t 600 /NOBREAK goto :MAIN :: downloading folder empty therefore download complete - shutdown computer. :INACTIVE shutdown.exe /s /t 00


แก้ไขล่าสุดโดย Ralthor; 16 มี.ค. 2016 @ 9: 25am
< >
กำลังแสดง 1-5 จาก 5 ความเห็น
โพสต์ดั้งเดิมโดย Ralthor:
Just said I would post this here as after a long search I couldn't find a single methodology that worked for me. "Steamwatcher" didn't detect any downloads at all, the power shell method just decided to shut down the PC oven when downloads were ongoing.. etc etc..

So here is my solution which revolves around the fact that steam doesn't create the final game folder until after the download has completed:

[SNIP] Much simpler solution. No external programs needed, just a simple batch file.

1. Start program download in steam.

2. Create and run the following batch file. Change folder its checking if you have moved your steam folder otherwise it should work as is. Currently its set to check every 10 minutes. Edit the timeout value to suit yourself if you wish.

SteamDownloadingWatcher.bat:

@ECHO OFF ::Check if steam downloading folder is empty. :MAIN for /F %%i in ('dir /b "C:\Program Files (x86)\Steam\steamapps\downloading"') do ( goto ACTIVE ) goto INACTIVE :: downloading folder not empty therefore download still ongoing - loop to main. :ACTIVE timeout /t 600 /NOBREAK goto :MAIN :: downloading folder empty therefore download complete - shutdown computer. :INACTIVE shutdown.exe /s /t 00
just worked fine for me... Thanks!
Nice. Thank you very much for adding this information to the Steam forum. :csdsmile:
This might also work in reverse but have not tested. If the folder of the game is empty, then it means the download has not been moved into that folder yet but is still in the downloading stage. Reverse is good if you want to shut down after a specific download.
Worked well, thank you!
This thread was quite old before the recent post, so we're locking it to prevent confusion.
< >
กำลังแสดง 1-5 จาก 5 ความเห็น
ต่อหน้า: 1530 50

กระดานสนทนาทั้งหมด > ฟอรัม Steam > Help and Tips > รายละเอียดกระทู้