Jump to content

Yzöwl

Patron
  • Posts

    4,113
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

Everything posted by Yzöwl

  1. I'd suggest not to use that syntax IF ERRORLEVEL = n is first of all not correct Also an errorlevel of 0 means that errorlevel was 0 or greater which in all cases would be true. This would probably replace your command better IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)
  2. I think there's a very basic reason for your problem, buttonObject.type can be set to either "submit", "button" or "reset" and you have it set to "hidden"! 'Test run, use Alt-k to run the script from the hta <script language="vbscript"> Sub RunAdmin CreateObject("WScript.Shell").Run "fscommand\admin.exe" End Sub </script> <body> <button id=runbutton style="width:0" class="button" type="button" value="Admin Prompt" accesskey="k" name="admin_button" onClick="RunAdmin"> </body>
  3. My whois query for www.dekadd.com 122.155.1.91 returns: From a domain lookup however, I get the following information: Does this help you?
  4. I know you've already got code which finds the Favorites and Desktop directories and they very likely suit your system, however those locations may also be redirected in the same way as you state that some of the My Documents locations are. The code I provided was simply an example for others to locate all three locations at once. Doing a full directory and subdirectory search for a particular text file under every drive on the PC is not the most efficient system for doing your task and the code you found is not very good at that either! @Echo off Setlocal Set K_="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" For /f %%a in ('Mountvol^|Findstr [c-z]:\\') Do Call :Chkit %%a Pause&Goto :Eof :Chkit For /f "delims=" %%a In ( 'Dir/b/s/a-d %1%UserName%.txt 2^>Nul') Do Call :Addit %%~dpa Goto :Eof :Addit Set P_=%* Reg add %K_% /v Personal /d "%P_:~,-1%" /f>Nul You backup code is using variables which have not been set or are set incorrectly. %docsfolder% has not been set and therefore has no value %HomePath% already has a (built-in) leading backslash meaning that you've doubled it up. It would also be better implemented with %HomeDrive%, (as %HOMEDRIVE%%HOMEPATH%), however the standard %USERPROFILE% should suffice.
  5. If you want to set three variables for the Favorites, Desktop and My Documents locations, they can be taken directly from the registry: Example.cmd @Echo off&Setlocal Set K_="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" For /f "tokens=1,2*" %%a In ( 'Reg query %K_%^|Findstr/i "Desktop Personal Favorites"') Do (Set %%a="%%c") Echo/%%Desktop%%=%Desktop% Echo/%%Personal%%=%Personal% Echo/%%Favorites%%=%Favorites% Pause
  6. You could try the usual VirtualDub and avidemux suggestions, or something less usually suggested like VideoPad.
  7. I agree wholeheartedly with Fred on this. The necessary change, which was implemented in the first modification was to reword stating that 'Commercial Use Is Not Allowed'; there it should have ended. I will say however that if Tommy has looked at the New Licensing Terms and is happy with them and it prevents further arguments then all's well that ends well.
  8. Here's one of my previous posts I found it using the search facility!
  9. It should be safe to remove, (you could always archive the drivers if you think they may be required at a later date). The inf file should have already run, when it did, the required files were copied to the correct location, (the resulting location found by GetPrinterDriverDirectory Function).
  10. Although Tomcat76 took the helm for a while on this project and other Members have chipped in with code too, this project is tommyp's and it is he alone who will decide its licencing detail.
  11. Have you thought about date/time stamps?
  12. What do you get when you use this link?
  13. Welcome to MSFN, I hope you enjoy being a member of our community.
  14. Nobody is going to do this for you, please read the unattended guide and the wealth of information on these Forums.
  15. It's not DOS! It's the Windows NT Command Shell.
  16. Please use the search facility!
  17. In winnt.sif have you got the following line? [unattended] OemPreinstall=yes
  18. Cool tool! thanks for the thought
  19. I'm not sure about earlier incarnations, since this is my first VHD version but yes for the WEI I get a message telling me that it is unable to assess storage whilst in a VHD, as part of the WEI calculation and exits. For the installed RAM, I know it's not a major thing, the RAM shows correctly as 4096 MB in the Task Manager Performance window, so I'm sure it's all working, it is just that I hate to see the empty field in that window.
  20. Just to answer my own question, Yes you can run a 64bit Win7 VHD located in a 32bit OS. Just one question I have with the running VHD, System Properties doesn't show any installed RAM, is this usual?
  21. Two quick questions Can I install a Win7 x64 VHD into a Vista x86 OS root. Can I install it into C:\VHDs e.g. C:\VHDs\Windows7.vhd (if so can/does that directory have system/hidden attributes?)
  22. For that I recommend you read 'The Guide'. Incidentally, because you are running a minimum of Windows XP sp2, (Office 2007 minimum requirement), here is an alternative inf method for creating your shortcuts. [Version] Signature = $Windows NT$ [DefaultInstall] ProfileItems = AddBgi, AddWmv, AddDoc, AddPps, AddXls [AddBgi] Name = bginfo, 1 CmdLine = 24, , bginfo.exe default.bgi /timer:0 /nolicprompt /silent SubDir = Startup [AddWmv] Name = Windows Media Player, 8, 16409 CmdLine = 16422, Windows Media Player, wmplayer.exe [AddDoc] Name = Microsoft Word, 8, 16409 CmdLine = 16422, Microsoft Office\Office12, winword.exe [AddPps] Name = Microsoft Powerpoint, 8, 16409 CmdLine = 16422, Microsoft Office\Office12, powerpnt.exe [AddXls] Name = Microsoft Excel, 8, 16409 CmdLine = 16422, Microsoft Office\Office12, excel.exe
  23. I have updated my previous post in order to help answer A.) I'm not sure what you mean in B.), (%REG%\045 doesn't exist), please clarify. For C.), that is the command-line which performs the install/invokation of the inf file.
  24. The original example used a few more double quotes than strictly necessary (in order to minimise problems with users using anything at all with spaces in the name). Here is an updated template, tested in Windows 2000, XP, VISTA and Windows 7 [Version] Signature="$Windows NT$" [Shortcuts] UpdateInis=AddLink [AddLink] ;creates a new section in the ini file and defines its location ;ini-name,section-name,oldsection-name,newsection-name=intendedlocation setup.ini,progman.groups,,group4=%16386%\Standalone\Restoration ;creates the link within the defined section of that ini file ;ini-name, section-name, oldlink-name, "newlink-name, exe-name, icon-file-name, icon-index, profile, start-in-location" setup.ini,group4,,"Restoration,""""""%16422%\Standalone\Restoration\Restoration.exe"""""""The only double quotes required in my tests seemed to be those shown. The only differences were that in VISTA and Windows 7, if newlink-name includes spaces those spaces are replaced with underscores. Because VISTA onwards uses a different filing structure here are an updated list of DirID's ;DirID's For Windows Vista Onwards [x86 & x64] 1 = <Location of running inf> 10 = %SystemRoot% 11 = %SystemRoot%\system32 12 = %SystemRoot%\system32\DRIVERS 17 = %SystemRoot%\INF 18 = %SystemRoot%\help 20 = %SystemRoot%\fonts 21 = %SystemRoot%\system32\viewers 23 = %SystemRoot%\system32\spool\drivers\color 24 = %SystemDrive%\ 25 = Shared directory 30 = <Root directory of the boot disk>\ 50 = %SystemRoot%\SYSTEM 51 = %SystemRoot%\system32\spool 52 = %SystemRoot%\system32\spool\DRIVERS\W32X86 ;(x86 systems only) 52 = %SystemRoot%\system32\spool\DRIVERS\x64 ;(x64 systems only) 53 = %UserProfile% 54 = <Directory where bootmgr.exe is located>\ 55 = %SystemRoot%\system32\spool\PRTPROCS\W32X86 ;(x86 systems only) 55 = %SystemRoot%\system32\spool\PRTPROCS\x64 ;(x64 systems only) 16384 = %UserProfile%\Desktop 16386 = %UserProfile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs 16389 = %UserProfile%\Documents 16390 = %UserProfile%\Favorites 16391 = %UserProfile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup 16392 = %UserProfile%\AppData\Roaming\Microsoft\Windows\Recent 16393 = %UserProfile%\AppData\Roaming\Microsoft\Windows\SendTo 16395 = %UserProfile%\AppData\Roaming\Microsoft\Windows\Start Menu 16397 = %UserProfile%\Music 16398 = %UserProfile%\Videos 16400 = %UserProfile%\Desktop 16403 = %UserProfile%\AppData\Roaming\Microsoft\Windows\Network Shortcuts 16404 = %SystemRoot%\Fonts 16405 = %UserProfile%\AppData\Roaming\Microsoft\Windows\Templates 16406 = %AllUsersProfile%\Microsoft\Windows\Start Menu 16407 = %AllUsersProfile%\Microsoft\Windows\Start Menu\Programs 16408 = %AllUsersProfile%\Microsoft\Windows\Start Menu\Programs\Startup 16409 = %Public%\Desktop (%UserProfile%\..\Public\Desktop) 16410 = %AppData% 16411 = %AppData%\Microsoft\Windows\Printer Shortcuts 16412 = %LocalAppData% 16413 = %AppData%\Microsoft\Windows\Start Menu\Programs\Startup 16414 = %AllUsersProfile%\Microsoft\Windows\Start Menu\Programs\Startup 16415 = %UserProfile%\Favorites 16416 = %LocalAppData%\Microsoft\Windows\Temporary Internet Files 16417 = %AppData%\Microsoft\Windows\Cookies 16418 = %LocalAppData%\Microsoft\Windows\History 16419 = %ProgramData% 16420 = %SystemRoot% 16421 = %SystemRoot%\system32 16422 = %ProgramFiles% 16423 = %UserProfile%\Pictures 16424 = %UserProfile% 16425 = %SystemRoot%\SysWOW64 ;(x64 systems only) 16426 = %ProgramFiles(x86)% ;(x64 systems only) 16427 = %CommonProgramFiles% 16428 = %CommonProgramFiles(x86)% ;(x64 systems only) 16429 = %AllUsersProfile%\Microsoft\Windows\Templates 16430 = %Public%\Documents (%UserProfile%\..\Public\Documents) 16431 = %AllUsersProfile%\Microsoft\Windows\Start Menu\Programs\Administrative Tools 16432 = %AppData%\Microsoft\Windows\Start Menu\Programs\Administrative Tools 16437 = %Public%\Music (%UserProfile%\..\Public\Music) 16438 = %Public%\Pictures (%UserProfile%\..\Public\Pictures) 16439 = %Public%\Videos (%UserProfile%\..\Public\Videos) 16440 = %SystemRoot%\resources 16441 = %SystemRoot%\resources\0409 16442 = %AllUsersProfile%\OEM Links 16443 = %LocalAppData%\Microsoft\Windows\Burn\Burn
  25. First of all you have an imbalance with your 'double-quotes' in your progman.groups lines. In your inf you could replace C:\ with %24%, and C:\Program Files with %16422% In order to not hard-code E: you would need to somehow programatically ascertain that letter first.
×
×
  • Create New...