Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch    |    Fun with MS-DOS batch files    |    42,547 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 41,112 of 42,547    |
|    AlleyCat to All    |
|    Thanks!!    |
|    02 May 15 20:58:21    |
      XPost: alt.comp.editors.batch, alt.comp.lang.shell.batch.enhancements,       alt.comp.lang.shell.batch.msdos       XPost: alt.comp.lang.shell.batch.winnt, alt.msdos.batch.nt       From: AlleyCat@aohell.com              On Sat, 2 May 2015 22:44:09 +0700, JJ says...              > If by "not taking resoures", you meant not to take CPU time as much as       > possible, then you can start the batch file in another command processor       > process as a low priority process using START /LOW. e.g.       >       > @echo off       > setlocal       > if not "%InLowPriority%" == "" goto start       > set InLowPriority=1       > start "Backup Batch" /b /low /wait cmd /c %0 %*       > goto :eof       > :start       > rem put backup batch code here       > rem       > rem e.g.       > rem copy sourcefile z:\destfolder       > rem contig z:\destfolder\sourcefile       >       > Note that running a process in low priority only make use less CPU       > processing share. It doesn't make it use less CPU time. i.e. it'll always       > run at full speed whenever the system give CPU time to it.       >       > If you want to make a process use less CPU time and not run at full speed,       > you'll have to use third party file copying tools that can limit its file       > copying speed. Or a utility that can limit a process CPU usage. e.g. BES but       > it can't be automated by command line.       >       > Also be aware that the CPU usage of a file defragmentation process can not       > be altered since it is handled separately by the kernel. It always runs at       > full speed and can not be limited by tools like BES.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca