Se Connecter:     


Forum: Old versions

Sujet: Optimization idea...

Ce topic est ancien et peut contenir des informations obselètes ou incorrectes.

So in my quest for a quick way to get my lappy configured for the best possible performance for several situations, I have decided to use a batch file to disable certain services and open VDJ all with a single icon.

I am still in the experimentation process with this and I wanted to share what I have thus far hoping we could maybe put our heads together to develop this as a possible new standard.

I started with www.blackviper.com to get the list of services that are not needed for VDJ to function. There is a list of the services and the service names as Windows knows them. I am running Win 7 but I think this batch file will work with XP. You will have to test it...

First thing I did was make a list of all the services that blackviper lists as disabled in a bare bones setup. I set these to manual. Then opened notepad and wrote this:

@echo off
net stop Ikeext
net stop PolicyAgent

The list will continue repeating the individual services. This will stop the listed services one by one. One thing I found was if a service has dependencies, you will want those listed first. If there is a question, just list the services and when you run the batch, you will get a prompt to enter "y" or "n." I simply reordered the list so everything shuts off in order.

The next process I am trying to sort out is how to disable certain devices as well. The wireless is the first thing I am working on. I have yet to get that part sorted out...

The last item on my list is this:

start /d "C:\Program Files (x86)\VirtualDJ" virtualdj_pro.exe

That tells Windows what directory the Virtual DJ executable is located. If you have it installed elsewhere, you can always right click on the shortcut icon and look at the target path to find out where it's located. The parenthensis are needed around the directory address then a space then the exe file.

Last step is to save the notepad file as type "all files" and for the filename, whatever you want to call it with a .bat extension. Now when I double click this, it disables all the unneeded services and starts up Virtual DJ.

Once I get the disabling devices sorted out, this is a single icon to streamline your PC and get VDJ up and running. If anyone has ideas on the syntax to disable devices, share with the group...
 

Posté Tue 01 Feb 11 @ 1:18 pm
Solved! But it is a bit of a process.

For Windows 7:

download this: http://lab.bandit.co.nz/utilities/devcon.exe

and put it on your C: drive

Then open device manager and pick the devices you want disabled when using VDJ. Double click on the device to open the device properties window. Click on the details tab. On the property drop down, choose hardware id. The first listing up to the first "&" is the hardware ID for that device. Write this down.

Now for my system, here is my file:

@echo off
net stop IKEEXT
net stop PolicyAgent
net stop bfe
net stop bthserv
net stop Dnscache
net stop PaceLicenseDServices
net stop lmhosts
net stop Wlansvc
net stop wbengine
net stop EapHost
net stop KeyIso
net stop Netman
net stop netprofm
net stop RasMan
net stop NlaSvc
net stop SstpSvc
c:\devcon disable pci\ven_10ec
start /d "C:\Program Files (x86)\VirtualDJ" virtualdj_pro.exe

Each line needs a carriage return in order for the batch file to work. Notice the second to last line. That is the command to disable my wireless card. The "c:\devcon" tells Windows where the exe file is. "Disable" is the command. "Pci\ven_10ec" is the hardware id for my wireless card.

I saved this notepad file as "all files" with a filename of Virtual DJ.bat

Now I can boot and double click and it automatically stops unneeded services and devices and starts up VDJ. I am going to write another batch file called "shut Down" that re-enables everything then shuts down the system. Then when I am done with a set, I can close VDJ and double click my shut down icon.
 

That was easy.

Here is the text for my shutdown batch file. It re-enables all the services, devices, and also clears out the temp folder then shuts down the system.

@echo off
cd c:\users\djnutz\AppData\Local
rmdir /s /Q Temp
net start IKEEXT
net start PolicyAgent
net start bfe
net start bthserv
net start Dnscache
net start PaceLicenseDServices
net start lmhosts
net start Wlansvc
net start wbengine
net start EapHost
net start KeyIso
net start Netman
net start netprofm
net start RasMan
net start NlaSvc
net start SstpSvc
c:\devcon enable pci\ven_10ec
shutdown /s
 

Hey Djnuts thanks for sharing this info. Great work.
 

Sorry double post...
 

not too sound stupid now but is it safe???????
and when you shut down does all the regs changes restart until you start vj again..
and all the usb ports etc work fine with these changes?
so all the changes only work when you start vj???
Ter..
 

@djnutz...nice solution.

On my netbook, I went with hardware profile, optimisation and shelling directly to VDJ - but it is only used for VDJ.
 

I have tested this and yes all of my USB ports still work. The first thing to do is visit www.blackviper.com and look for the windows 7 services tweak page. You can also search the VJD boards for optimization to find lists in regards to WinXP too. The only catch here is XP uses a different version of Devcon from Windows 7. The XP version can be found on Microsoft's website. You can customize your batch file to turn off whatever services and devices you want to. In my case, I don't use any of the online features, so I have all my wireless stuff disabled when I am DJ'ing. Now, I also use this same system for other things like lighting design and audio/video production work, so sometimes I do need internet access.

Update: I took the 2 batch files and put them on my C: drive. Then I added 2 shortcuts in the same folder. With shortcuts, you can change the icons individually. So one is called Virtual DJ Optimized and I used the VDJ logo. The other is Shutdown and that is using the standard windows shut down icon. Then I copied the shortcuts to my start button.

I think I am going to add the internal soundcard and cdrom drive to my list of disabled devices while dj'ing.

Oh, and yes the shutdown batch file re-enables everything before shutting down, so the next time I start the machine everything will work fine.
 

cheers dude for the info
 



(Les anciens sujets et forums sont automatiquement fermés)