Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
June 19, 2013, 06:33:29 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: For Vista User  (Read 2499 times)
dpaehl
Newbie
*
Posts: 3


View Profile WWW
« on: June 24, 2007, 02:38:06 pm »

JkDefrag required run as admin under Vista.
But if you run jkdefrag from a batch jkdefrag not work.

Change the following in the next version please

Code:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <assemblyIdentity
    version="1.0.0.0"
    processorArchitecture="*"
    name="JKDefrag"
    type="win32"/>
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel level="requireAdministrator"/>
      </requestedPrivileges>
    </security>
  </trustInfo>
</assembly>


As external JKDefrag.exe.manifest or better internal see this version
http://d5.daupload.com/d.php?filepath=10946
Version 3.16

Dirk Paehl
http://www.paehl.de (.com)
Logged

Dirk Paehl
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7156



View Profile WWW
« Reply #1 on: June 25, 2007, 05:48:16 pm »

Thanks for your suggestion, I appreciate it! I have looked at inluding a manifest but decided against it. At the moment regular users can use JkDefrag to defrag/optimize their own files, but by including a manifest that would become impossible. I don't know how you have constructed your batch or how you are running it, but I think that you can solve the problem with a little experimenting. Maybe by changing the properties of the batch, or maybe by running the batch via the task scheduler.
Logged
dpaehl
Newbie
*
Posts: 3


View Profile WWW
« Reply #2 on: June 26, 2007, 11:18:37 am »

Under Vista Home Basic the program run with admin right. And can defrag all files.

Change the batch not possible, the problem is the runas and jkdefrag with parameter not work.

Here is a batch work with all windows version. Ignore the german

Code:
@echo off
Echo Letze komplette Defragmentierung.
if exist last_defrag.log type last_defrag.log
if not exist last_defrag.log Echo Keine.
Echo.
Echo Aktuelles Datum: %date%
Echo Analysiere
JkDefrag.exe  -a 1
notepad JkDefrag.log
:fragen
set /P X= (T)aeglich oder (V)olle defragmentierung oder (B)eenden?
if /I "%X%"=="T" goto :daily
if /I "%X%"=="V" goto :nein
if /I "%X%"=="B" goto :ende
goto fragen
:daily
Echo Taeglich
JkDefrag.exe
goto ende
:nein
Echo Volle defragmentierung.
Echo Das dauert etwas.
echo %date% >last_defrag.log
JkDefrag.exe -a 4
:ende
del JkDefrag.log



Under Vista work only when jkdefrag have admin right.
As task, possible, but i hate the task scheduler.

The batch is runing manuelly.
Logged

Dirk Paehl
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!