Taking the s4 diary to the next level [tutorial]
Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1

    Post Taking the s4 diary to the next level [tutorial]

    Hi DJTT! I'm DJ Trancicted and probably one off the youngest DJTT visitors. I'm 17 years old and studying computer engineering in Belgium. I rarely speak English so sorry if you see the worst English mistakes you've ever seen!

    I saw the S4 Diary and I want to take it to the next level.
    Because I'm just a student, I don't have the money for buying a laptop exceptionally for DJ'ing even the S4 took a big hole in my budget!

    So, the s4 diary was a big help, but I also want my laptop for regular use without always have to check those settings so I've learned about batch files on my own.
    I will teach you now how I used batch files to optimize my laptop for use with TP2.
    For optimal use, I use 2 batch files. One to enable 'DJ Mode' and one to disable.


    UPDATE!!
    I've made a new batch file, based on the batch file from smiTTTen.
    Everything from this thread has been added to it.
    The code can you find in this post (http://www.djtechtools.com/forum/sho...333#post305333) and will be updated very often!

    Some useful tools
    1. There are multiple ways to make a batch file, but I use Notepad ++. For me, it's a very good notepad replacement.
    2. Also, I store every batch file in dropbox (please use this link so I get a little credit of it) so I can access it over all my computers and even on the internet. Then I make a shortcut to it from my desktop. But more of that later.
    3. You will see, every time that I click on the batch file, I will defragmentate my RAM, for that, I use RAM Saver Pro.


    @echo off
    You can start the batch file with @echo off. This will let you view the batch file cleaner when executed.
    I use it all the time!

    pause
    When making this batch, it could be easy to use the 'pause' command sometimes. It will wait to resume with the next commands untill you hit a key. If nothing happens and the batch shows an error, you can read it now!

    Disable the Wifi by using DevCon
    DevCon isn't standard in your windows OS, that's why it needs to be installed. Clicking the DevCon link will bring you to the official Microsoft website where you can find the tutorial for the install.
    Once installed, we need to search for the hardware ID of the wifi-card in the device manager.
    Locate the wifi adapter first, click right and click 'properties'. Go to the tab Details and locate 'Hardware ID'




    Here you can see the hardware ID's. Write down the 'DEV_****' number till the &-mark. That's the hardware ID we want to disable. Mine is DEV_002E.
    To disable the wifi now, we write this in the batch file:
    Code:
    devcon disable *DEV_002E*
    To undo this, we make another batch file (like "disable DJ mode") and write:
    Code:
    devcon enable *DEV_002E*
    Defragmentate the RAM Memory
    Now we will start RAM Saver Pro. When this program is started, it will automatically start defragmentating and will one last a couple off seconds. First the RAM usage will peak, this is normal!
    To start the program, first install it and then write:
    Code:
    start "DJ enable" "C:\Program Files (x86)\WinTools Software\RAM Saver Professional\ramsaverpro.exe"
    Note: This is the path for windows 7 x64. If you use x32, just delete the (x86) from the program files like:
    Code:
    start "DJ enable" "C:\Program Files\WinTools Software\RAM Saver Professional\ramsaverpro.exe"
    If you want to start some other programs that will boost your computer. Just locate the .exe file off that program and write it down in the second part off the code.
    To end the program, use this code, but more off that later!
    Code:
    Taskkill /im ramsaverpro.exe
    Killing services
    Like in the original s4 diary, Smittten showed how to disable services. We will do the same, but with 1 click!
    First we will locate the service we want to stop. We can do that by following these steps:
    Go to the Services Menu



    Search for the service you want to stop, right click on it and go to properties.
    The highlighted part is the service name, that's what we need now.



    Go back to your batch file and write down:
    Code:
    net stop "[Service name here]"
    like:
    Code:
    net stop "avast! Antivirus"
    To start the service again in the other batch file, use net start instead of net stop.
    Code:
    net start "[Service name here]"
    Note that not every service may be stopped because stopping the wrong service can harm your computer.

    Stopping programs
    To run your computer even smoother, the last thing we gonna do is stopping some programs that you most off all have running.
    My example now is Ram Saver pro, because we just installed it and run it for defragmentate our RAM. Off course, this program isn't needed to run when in a gig.
    To see what programs are running, go to the task manager and click on the process tab.



    Here are all the programs that are running. Note that not every program may be stopped because stopping the wrong program can harm your computer, but when you found a program just use it in the next code:
    Code:
    Taskkill /f /im [program name here].exe
    for Ram Saver Pro:
    Code:
    Taskkill /f /im ramsaverpro.exe
    I think we are done now.
    Every part of my batch file has been used now.
    For example, this is my Enable DJ Mode.bat:
    Code:
    @echo off
    devcon disable *DEV_002E*
    start "DJ enable" "C:\Program Files (x86)\WinTools Software\RAM Saver Professional\ramsaverpro.exe"
    net stop "Bonjour Service"
    net stop "avast! Antivirus"
    net stop "Apple Mobile Device"
    net stop PnkBstrA
    net stop TeamViewer6
    net stop HPSLPSVC
    net stop UNS
    net stop NAUpdate
    net stop wscsvc
    net stop WinDefend
    net stop WMPNetworkSvc
    net stop WSearch
    net stop wuauserv
    net stop "iPod Service
    Taskkill /f /im TeamViewer.exe
    Taskkill /im firefox.exe
    Taskkill /f /im uTorrent.exe
    Taskkill /f /im Dropbox.exe
    Taskkill /f /im steam.exe
    Taskkill /f /im "AAM Updates Notifier.exe"
    Taskkill /f /im AvastUI.exe
    Taskkill /im ramsaverpro.exe
    and this is my Disable DJ Mode.bat:
    Code:
    @echo off
    devcon enable *DEV_002E*
    start "DJ disable" "C:\Program Files (x86)\WinTools Software\RAM Saver Professional\ramsaverpro.exe"
    net start "Bonjour Service"
    net start "avast! Antivirus"
    net start "Apple Mobile Device"
    net start PnkBstrA
    net start TeamViewer6
    net start HPSLPSVC
    net start UNS
    net start NAUpdate
    net start wscsvc
    net start WinDefend
    net start WMPNetworkSvc
    net start WSearch
    net start wuauserv
    net start "iPod Service"
    Taskkill /im ramsaverpro.exe
    Now you can save you bath file everywhere you want. But be sure that the file extension is .bat and not .txt
    Because I use dropbox a lot, I've stored it there and made a shortcut to it from my desktop.
    That's easy, because now, I can edit the icon of it.



    Have fun with making your batch files and I hope that you've learned a lot of this tutorial. If you have questions, ask them below
    If you are home either in the batch world, please react to this thread with your code and use off it and I will update this post so we can make the best DJ batch file ever made for every Digital DJ!
    Last edited by Trancicted; 06-18-2011 at 11:26 AM.

  2. #2
    Tech Guru Yul's Avatar
    Join Date
    Sep 2009
    Location
    Aix-en-Provence, France
    Posts
    1,175

    Default

    Thanks, your initiative is really appreciated.

  3. #3
    DJTT Tankard fullenglishpint's Avatar
    Join Date
    Aug 2010
    Location
    St Albans, UK
    Posts
    7,097

    Default

    epic post! Thanks a lot for sharing, I'm sure a lot of people will find this useful.
    TSP 2 | Serato DJ | Live 8 | MBP (SSD + HDD) | AIAIA TMA-1 Fool's Gold Edition | 1200 Mk2s | MidiFighter | KRK RP5
    Xone: DB4 | Pioneer CDJ-2000 Nexus
    DJTT FAQ | Read my guide to AUDIO CABLES

  4. #4
    Tech Mentor
    Join Date
    May 2011
    Location
    Italy
    Posts
    119

    Default

    Quote Originally Posted by fullenglishpint View Post
    epic post! Thanks a lot for sharing, I'm sure a lot of people will find this useful.
    +1

  5. #5
    DJTT Scribe Mod smiTTTen's Avatar
    Join Date
    Jan 2011
    Location
    Then: UK. Now: US.
    Posts
    1,937

    Default

    Good Work!

    One of the biggest challenges for most people on here is less around how to stop a service or application and more about what can be stopped without impacting the stability of their system.

    Myself and Stashe over at the NI forum came up with a script that some people have been using for the last 6 months or so . I will paste it below. By all means feel free to rip it apart and improve on it. I would also be happy to update the original Diary sticky with some of your info and you'll get full credit.

    Nice to see someone step up and come to the table with some solid info - WELL DONE!

    SmiTTTen


    Copy the following to into a notepad file:


    @ECHO OFF

    ::============================ ===========

    :: **** BEGIN AUTO ELEVATION PROMPT ****

    :: This makes the batch file prompt for elevated permissions
    :: on Windows Vista or Windows 7, then re-run itself

    VER | FINDSTR /IL "5.1." > NUL
    IF %ERRORLEVEL% EQU 0 SET Version=XP

    VER | FINDSTR /IL "5.2." > NUL
    IF %ERRORLEVEL% EQU 0 SET Version=2003

    VER | FINDSTR /IL "6.0." > NUL
    IF %ERRORLEVEL% EQU 0 SET Version=Vista

    VER | FINDSTR /IL "6.1." > NUL
    IF %ERRORLEVEL% EQU 0 SET Version=7

    If "%Version%"=="XP" GoTo SkipElevation
    If "%Version%"=="2003"? GoTo SkipElevation
    PushD "%~dp0"?
    If Exist "%~0.ELEVATED" GoTo SkipElevation

    :: Have to escape double quotes because they are
    :: passed to Cmd.exe via ShellExecute

    Set CMD_Args=%0 %*
    Set CMD_Args=%CMD_Args:"="%
    Set ELEVATED_CMD=PowerShell -Command (New-Object -com 'Shell.Application').ShellExec ute('Cmd.exe', '/C %CMD_Args%', '', 'runas')
    Echo %ELEVATED_CMD% >> "%~0.ELEVATED"

    :: If there are single quotes in the arguments, this will fail

    Call %ELEVATED_CMD%
    Exit
    SkipElevation
    If Exist "%~0.ELEVATED" Del "%~0.ELEVATED"

    :: **** END AUTO ELEVATION PROMPT ****


    ::============================ ============


    SET Option=
    IF NOT '%1'=='' GOTO QUIT

    :MENU
    CLS
    ECHO. Welcome to the Windows Services Tool for Traktor S4 users.
    ECHO. Please select one of the numbers below to begin!
    ECHO.
    ECHO.
    ECHO. 1. Stop all non-Essential Windows Services
    ECHO. 2. Start all non-Essential Windows Services
    ECHO. 3. Quit this Script
    ECHO.
    ECHO.
    SET /P Input=Which option would you like to perform?:
    IF %Input% == 1 GOTO STOPSVC
    IF %Input% == 2 GOTO STARTSVC
    IF %Input% == 3 GOTO QUIT

    STOPSVC
    CLS
    ECHO.
    ECHO. STOPPING all non-Traktor services!
    ECHO.
    PAUSE

    rem Stopping Windows Firewall and Windows Defender...
    net stop mpssvc
    net stop windefend

    rem Stopping DHCP Client and Wireless LAN...
    net stop WinHttpAutoProxySvc
    net stop dhcp
    net stop wlansvc

    rem Stopping Other Network Related Services...
    net stop "dns cache"
    net stop netprofm
    net stop nlasvc
    net stop netman
    net stop iphlpsvc
    net stop lanmanworkstation
    net stop "Bonjour Service"
    net stop dhcp
    net stop nsi
    net stop lanmanserver
    net stop lmhosts
    net stop "shared access"
    net stop nettcpportsharing
    net stop remoteaccess
    net stop alg
    net stop bits
    net stop peerdistsvc
    net stop certpropsvc
    net stop homegrouplistener
    net stop homegroupprovider
    net stop winrm
    net stop Broswer
    net stop TrkWks


    rem Stopping other Windows Services...
    net stop wscsvc
    net stop DPS
    net stop CscService
    net stop WPDBusEnum
    net stop ProtectedStorage
    net stop RemoteRegistry
    net stop seclogon
    net stop wscsvc

    rem Stopping Blue Tooth Services
    net stop bthserv

    rem Stopping Remote Desktop and Remote Assistance Services
    net stop sessionenv
    net stop termservice

    rem Stopping Windows Update Services
    net stop wuauserv

    rem Stopping iPod Services
    net stop "ipod service"
    net stop "Apple Mobile Device"

    rem Stopping Stuff that makes your PC look nice...
    net stop themes
    net stop sensrsvc
    net stop AeLookupSvc
    net stop UxSms

    rem Stopping Scanner, Camera and other imaging Services...
    net stop stisvc

    rem Stopping Windows Media Playing Sharing...
    net stop WMPnetworksvc

    rem Stopping Tablet Device Support...
    net stop tabletinputservice

    rem Stopping Other Windows Services...
    net stop bdesvc
    net stop wbengine
    net stop uiodetect
    net stop defragsvc
    net stop axinstsv
    net stop "w32time"
    net stop wercplsupport


    rem Stopping Printer Services
    net stop spooler

    ECHO.
    ECHO.
    ECHO. PROCESS COMPLETE!
    ECHO.
    PAUSE
    GOTO MENU

    STARTSVC
    CLS
    ECHO. STARTING all non-Traktor services!
    PAUSE

    rem Starting Windows Firewall and Windows Defender...
    net start mpssvc
    net start windefend

    rem Starting DHCP Client and Wireless LAN...
    net start WinHttpAutoProxySvc
    net start dhcp
    net start wlansvc

    rem Starting Other Network Related Services...
    net start "dns cache"
    net start netprofm
    net start nlasvc
    net start netman
    net start iphlpsvc
    net start lanmanworkstation
    net start "Bonjour Service"
    net start dhcp
    net start nsi
    net start lanmanserver
    net start lmhosts
    net start "shared access"
    net start nettcpportsharing
    net start remoteaccess
    net start alg
    net start bits
    net start peerdistsvc
    net start certpropsvc
    net start homegrouplistener
    net start homegroupprovider
    net start winrm
    net start Broswer
    net start TrkWks


    rem Starting other Windows Services...
    net start wscsvc
    net start DPS
    net start CscService
    net start WPDBusEnum
    net start ProtectedStorage
    net start RemoteRegistry
    net start seclogon
    net start wscsvc

    rem Starting Blue Tooth Services
    net start bthserv

    rem Starting Remote Desktop and Remote Assistance Services
    net start sessionenv
    net start termservice

    rem Starting Windows Update Services
    net start wuauserv

    rem Starting iPod Services
    net start "ipod service"
    net start "Apple Mobile Device"

    rem Starting Stuff that makes your PC look nice...
    net start themes
    net start sensrsvc
    net start AeLookupSvc
    net start UxSms

    rem Starting Scanner, Camera and other imaging Services...
    net start stisvc

    rem Starting Windows Media Playing Sharing...
    net start WMPnetworksvc

    rem Starting Tablet Device Support...
    net start tabletinputservice

    rem Starting Other Windows Services...
    net start bdesvc
    net start wbengine
    net start uiodetect
    net start defragsvc
    net start axinstsv
    net start "w32time"
    net start wercplsupport


    rem Starting Printer Services
    net start spooler

    ECHO.
    ECHO.
    ECHO. PROCESS COMPLETE!
    ECHO.
    PAUSE
    GOTO MENU

    :QUIT



    [Save the file as Killscript.bat (or whatever you want to call it, just make sure it has the .bat)
    Beats By Dre is like audio flu for your balls.

  6. #6
    Tech Wizard
    Join Date
    Mar 2009
    Location
    Sunbury on Thames
    Posts
    94

    Default

    Is it my imagination or has the file grown?

  7. #7
    DJTT Scribe Mod smiTTTen's Avatar
    Join Date
    Jan 2011
    Location
    Then: UK. Now: US.
    Posts
    1,937

    Default

    Possibly, we worked to improve it in various places.
    Beats By Dre is like audio flu for your balls.

  8. #8

    Default

    I took the batch file from Smittten and improved it with some additional menus and commands:

    Again, don't shoot me if I made some English language mistakes
    Code:
    @Echo off
    :menu
    ECHO.
    ECHO. Welcome to the DJTT PC Optimizer 
    ECHO.
    ECHO.
    ECHO. Press 1 if you want to optimize your laptop for a gig
    ECHO. Press 2 if you want to restore everything for normal use
    ECHO. Press 3 to quit
    ECHO.
    ECHO.
    Set /p input=What do you want to do?
    
    IF %Input% == 1 GOTO Optimize
    IF %Input% == 2 GOTO Restore
    IF %Input% == 3 GOTO Quit
    
    :Optimize
    CLS
    ECHO.
    ECHO. Optimizing your computer now!
    ECHO.
    rem Disabling your wifi
    set /p hardwareID= What is the hardware ID of your Wifi card? Also make you have devcon installed! For instructions, visit http://www.djtechtools.com/forum/showthread.php?p=304909
    devcon disable *%hardwareID%*
    
    rem Defragmentating your RAM
    start "DJ Script" "C:\Program Files (x86)\WinTools Software\RAM Saver Professional\ramsaverpro.exe"
    
    rem Stopping Windows Firewall, Windows Defender and Avast!...
    net stop mpssvc
    net stop windefend
    net stop "avast! Antivirus"
    
    rem Stopping DHCP Client and Wireless LAN...
    net stop WinHttpAutoProxySvc
    net stop dhcp
    net stop wlansvc
    
    rem Stopping Other Network Related Services...
    net stop "dns cache"
    net stop netprofm
    net stop nlasvc
    net stop netman
    net stop iphlpsvc
    net stop lanmanworkstation
    net stop "Bonjour Service"
    net stop dhcp
    net stop nsi
    net stop lanmanserver
    net stop lmhosts
    net stop "shared access"
    net stop nettcpportsharing
    net stop remoteaccess
    net stop alg
    net stop bits
    net stop peerdistsvc
    net stop certpropsvc
    net stop homegrouplistener
    net stop homegroupprovider
    net stop winrm
    net stop Broswer
    net stop TrkWks
    
    
    rem Stopping other Windows Services...
    net stop wscsvc
    net stop DPS
    net stop CscService
    net stop WPDBusEnum
    net stop ProtectedStorage
    net stop RemoteRegistry
    net stop seclogon
    net stop wscsvc
    
    rem Stopping Blue Tooth Services
    net stop bthserv
    
    rem Stopping Remote Desktop and Remote Assistance Services
    net stop sessionenv
    net stop termservice
    
    rem Stopping Windows Update Services
    net stop wuauserv
    
    rem Stopping iPod Services
    net stop "ipod service"
    net stop "Apple Mobile Device"
    
    rem Stopping Stuff that makes your PC look nice...
    net stop themes
    net stop sensrsvc
    net stop AeLookupSvc
    net stop UxSms
    
    rem Stopping Scanner, Camera and other imaging Services...
    net stop stisvc
    
    rem Stopping Windows Media Playing Sharing...
    net stop WMPnetworksvc
    
    rem Stopping Tablet Device Support...
    net stop tabletinputservice
    
    rem Stopping Other Windows Services...
    net stop bdesvc
    net stop wbengine
    net stop uiodetect
    net stop defragsvc
    net stop axinstsv
    net stop "w32time"
    net stop wercplsupport
    net stop PnkBstrA
    net stop TeamViewer6
    net stop HPSLPSVC
    net stop Wsearch
    net stop osppsvc
    
    
    rem Stopping Printer Services
    net stop spooler
    
    rem stopping useless programs
    Taskkill /f /im TeamViewer.exe
    Taskkill /im firefox.exe
    Taskkill /f /im uTorrent.exe
    Taskkill /f /im Dropbox.exe
    Taskkill /f /im steam.exe
    Taskkill /f /im "AAM Updates Notifier.exe"
    Taskkill /f /im AvastUI.exe
    Taskkill /f /im hpqtra08.exe
    Taskkill /f /im hpwuschd2.exe
    Taskkill /f /im ctfmon.exe
    
    rem Stop defragmentating RAM
    Taskkill /im ramsaverpro.exe
    
    ECHO.
    ECHO. Your PC has been optimized 
    ECHO.
    ECHO.
    ECHO. Press 1 if you want to restore everything for normal use
    ECHO. Press 2 to quit
    ECHO.
    ECHO.
    Set /p input=What do you want to do?
    
    IF %Input% == 1 GOTO Restore
    IF %Input% == 2 GOTO Quit
    
    :Restore
    CLS
    ECHO.
    ECHO. Restoring everything for normal use!
    ECHO.
    rem Enabling your wifi
    set /p hardwareID= What is the hardware ID of your Wifi card? Also make you have devcon installed! For instructions, visit http://www.djtechtools.com/forum/showthread.php?p=304909
    devcon enable *%hardwareID%*
    
    rem Defragmentating your RAM
    start "DJ Script" "C:\Program Files (x86)\WinTools Software\RAM Saver Professional\ramsaverpro.exe"
    
    rem Starting Windows Firewall, Windows Defender and Avast!...
    net start mpssvc
    net start windefend
    net start "avast! Antivirus"
    
    rem Starting DHCP Client and Wireless LAN...
    net start WinHttpAutoProxySvc
    net start dhcp
    net start wlansvc
    
    rem Starting Other Network Related Services...
    net start "dns cache"
    net start netprofm
    net start nlasvc
    net start netman
    net start iphlpsvc
    net start lanmanworkstation
    net start "Bonjour Service"
    net start dhcp
    net start nsi
    net start lanmanserver
    net start lmhosts
    net start "shared access"
    net start nettcpportsharing
    net start remoteaccess
    net start alg
    net start bits
    net start peerdistsvc
    net start certpropsvc
    net start homegrouplistener
    net start homegroupprovider
    net start winrm
    net start Broswer
    net start TrkWks
    
    
    rem Starting other Windows Services...
    net start wscsvc
    net start DPS
    net start CscService
    net start WPDBusEnum
    net start ProtectedStorage
    net start RemoteRegistry
    net start seclogon
    net start wscsvc
    net start osppsvc
    
    rem Starting Blue Tooth Services
    net start bthserv
    
    rem Starting Remote Desktop and Remote Assistance Services
    net start sessionenv
    net start termservice
    
    rem Starting Windows Update Service
    net start wuauserv
    
    rem Starting iPod Services
    net start "ipod service"
    net start "Apple Mobile Device"
    
    rem Starting Stuff that makes your PC look nice...
    net start themes
    net start sensrsvc
    net start AeLookupSvc
    net start UxSms
    
    rem Starting Scanner, Camera and other imaging Services...
    net start stisvc
    
    rem Starting Windows Media Playing Sharing...
    net start WMPnetworksvc
    
    rem Starting Tablet Device Support...
    net start tabletinputservice
    
    rem Starting Other Windows Services...
    net start bdesvc
    net start wbengine
    net start uiodetect
    net start defragsvc
    net start axinstsv
    net start "w32time"
    net start wercplsupport
    net start PnkBstrA
    net start TeamViewer6
    net start HPSLPSVC
    net start Wsearch
    
    
    rem Starting Printer Services
    net start spooler
    
    rem Stop RAM Defragmentation
    Taskkill /im ramsaverpro.exe
    
    ECHO.
    ECHO. Your PC has been restored
    ECHO.
    ECHO.
    ECHO. Press 1 if you want to optimize your laptop for a gig
    ECHO. Press 2 to quit
    ECHO.
    ECHO.
    Set /p input=What do you want to do?
    
    IF %Input% == 1 GOTO Optimize
    IF %Input% == 2 GOTO Quit
    
    :Quit
    tested it on my laptop today and I runned windows 7(x64) Ultimate on only 560 mb RAM with this!
    Latency = max 230 µs
    Last edited by Trancicted; 06-16-2011 at 12:53 PM.

  9. #9
    DJTT Scribe Mod smiTTTen's Avatar
    Join Date
    Jan 2011
    Location
    Then: UK. Now: US.
    Posts
    1,937

    Default

    Good Work. Might be helpful if you could summarize the improvements that have been made. In fact, we didn't do a great job on the explaining the actions of the script to begin with so any info would be useful.
    Beats By Dre is like audio flu for your balls.

  10. #10

    Default

    Quote Originally Posted by smittten View Post
    Good Work. Might be helpful if you could summarize the improvements that have been made. In fact, we didn't do a great job on the explaining the actions of the script to begin with so any info would be useful.
    Ok, will do this in a few days. Also, is there a kind of a blog so we can store the batch file there so we can put it on the first post together with all the improvements and functions??
    And damn, I'am just thinking of it, I made the devcon command only to work with my Wifi, I'am going to put a variable in it...

    Update: made a variable in it for the wifi disable
    Last edited by Trancicted; 06-16-2011 at 12:52 PM.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •