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. Here's mine, it's a selfextracting HTA as is GSMs. The only difference is that it should autoclose if not completed within 1½ minutes. <Edit> For unattended use, you only need to run it, it will silently do it's thing. I have also re-upped the file, was 2 minutes to autoclose now 1½. </Edit> If you wish to have one minute, which I personally thought was a little too short, you will need to unpack and change line 39, from window.setInterval "timer",90000 to window.setInterval "timer",60000 then repack as a silent sfx using appropriate comments etc. Warning It will autoclose even if part way through filling it in! This one is only for the information you requested for it, it will also not accept only one of the parameters, you need to fill in both owner and organization. Hope it helps! Note This is my very first attempt at HTA, and one of only a handful of attempts at VBScripting. Please try the program, and let me know how it works and any advice on improvements in the code will be welcome. WhoFor.exe
  2. Windows XP Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel] "{20D04FE0-3AEA-1069-A2D8-08002B30309D}"=dword:00000000 "{450D8FBA-AD25-11D0-98A8-0800361B1103}"=dword:00000000
  3. Yes! The backslash is an escape character, all 'internal quotations must use this syntax. It prevents the command closing when it reaches the next quotation mark. For the guide on this read » Applications that use Quotations
  4. Create a new administrative user called Andrew, and login as him. Take ownership of all files in the Mr. A ??????? folders you want keeping and copy them to your new Andrew folders. Delete the user Mr. A ???????. You will very likely need to turn off simple file sharing to do it.
  5. Now that you have a reply, what about telling us why… you are giving files attributes which are not their defaults and asking us to do the same! It would also be prudent in future to either check if a file exists prior to performing a task on it or alternatively redirect stderr. You may also wish to know that none of your goto statements are actually needed.
  6. This is a feature, however, if there were a few URLs you wished to remove from the list, whilst keeping the functionality, all you need is the freeware application IEHistoryView by Nirsoft.
  7. The following batch file should fix your My Documents problem, you may need an explorer reboot in order for the change to take effect. mydocfix.cmd
  8. Right click on Start Menu > Properties > Customize > Advanced Under Start menu items: take the check mark out of Scroll Programs
  9. Try this as a test, replace the pushd line with the location of your files pushd C:\Documents and Settings\Administrator\Desktop\Batch Files for %%a in ("*.cmd") do echo/call %%~na pause&popdWhen you've confirmed if and how the output works remove the echo/ and pause& and you're good to go.
  10. It used techniques I have already posted about, at one time or another on these forums. Running the file without a cmd window was my first priority, and then the coding used wouldn't 'tutorially' help other readers, I therefore decided to compile it. Also when I ran the file it was just too cool to share… <Edit> The beauty of this file is that you don't need to know your drives before you create the UACD, (If the drive doesn't exist, the shortcut isn't created). The file will also work by a simple double click in an existing installation and should also pick up existing network and removable drives too. </Edit>
  11. xtremexxx, are you seeing red?
  12. Is this what you mean? for %%a in ("*.cmd") do %comspec% /c "%%~a"<Edit> You don't have to use '%comspec% /c', you may prefer to use 'call' </Edit>
  13. Have you seen this reply? Need a .cmd or .bat for exporting Firefox bookmark
  14. Here is a compiled batch file I've just made specially for you. There are no 3rd party utilities used.Note This file will not work pre-XP DrvShCut.zip
  15. XCOPY "%BACKUP%\My Documents" "%UserProfile%\My Documents" /ECIQY<Edit> Changed due to previous lack of sleepthanks a06lp </Edit>
  16. @ darksimoon In your example, you need to change reg add newtemp.reg to regedit /s newtemp.reg Here is a way you can redirect the 'user temp' folders to the same location as '\WINDOWS\Temp' for everyone at once with no requiremrnt to remove them later in your cleanup routine. Use this in cmdlines.txt @Echo off&Pushd %UserProfile%\..\Default User Reg load HKU\TempHiv NTUSER.DAT>Nul 2>&1||Goto :Eof Reg add HKU\TempHiv\Environment /v TEMP /t REG_EXPAND_SZ /d "%%SystemRoot%%\Temp" /f>Nul Reg add HKU\TempHiv\Environment /v TMP /t REG_EXPAND_SZ /d "%%SystemRoot%%\Temp" /f>Nul :Un_ Reg unload HKU\TempHiv>Nul 2>&1||Goto Un_Although this is not what you require, it shows you the REG ADD syntax you can use and a method of applying current user registry entries to all users.
  17. If your using Windows XP or higher, then try something from here instead.
  18. Can you not just use net time \\computername /set /yeswhere computername is the name of the computer carrying the installation software. All times will then match the machine with which they are communicating.
  19. You could have further shortened the line by replacing %USERPROFILE%\Application Data with %APPDATA%. Anyhow, here is a slightly different approach, which will also suit those of us not using the default profile name /location. @echo off&setlocal enableextensions set backupdir=I:\Firefox bookmarks\script test for /f "tokens=1,2* delims==" %%a in ( 'type "%AppData%\Mozilla\Firefox\profiles.ini"^|findstr/ib "path=" ^2^>nul' ) do ( if errorlevel 0 set profdir=%%~b ) if defined profdir ( if not exist "%backupdir%\bookmarks.html" ( copy "%profdir%\bookmarks.html" "%backupdir%">nul ) else ( xcopy "%profdir%\bookmarks.html" "%backupdir%" /adcquy>nul ) ) endlocal&goto :eofJust change the location for your backups after the equals symbol on the second line Note This will not work for those users with more than one firefox profile defined Just schedule the batch to run with AT or SCHTASKS.
  20. Uncheck On Screen Saver "On resume, display Welcome screen" [HKEY_CURRENT_USER\Control Panel\Desktop] "ScreenSaverIsSecure"="0"
  21. All on one line reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CSDVersion|find /i "Service Pack 2"||start "" /w drive:\path\XPSP2.exewhere XPSP2.exe is the name of the service pack to install.
  22. Well that would have been a good idea, but I hadn't seen one of those buttons for months now…have they just re-appeared? are they only available in some forum groups? or have I just been blind?<Edit> I am starting to think I may have been slightly blind, since the option only appears to be visible once you are logged in… Back to the subject, Free interactive Batch Course <Edit>
  23. Most policies can be easily set through the registry, there is plenty of information available within these forums on this method. The other and more involved method would be using administrative templates.
  24. This would be more effectiveDEL /F /S /Q /A "*.jp*g" But as no drive or path has been specified it will only traverse from the root of the folder at which the command was invoked. This would mean you would need to run it knowing all the drives first, i.e. DEL /F /S /Q /A "C:\*.jp*g" DEL /F /S /Q /A "D:\*.jp*g" DEL /F /S /Q /A "E:\*.jp*g" etc.Many of the codes provided, will prevent this necessity by automating the addition of the drives to traverse. The /Q is Quiet mode, effectively meaning silent.
  25. You could just use the built in Xcopy XCOPY %SYSTEMDRIVE%\install\mp3 %SYSTEMDRIVE%\mp3 /ECIQHYHowever, why all the bother, just place the mp3 folder directly into \$OEM$\$1
×
×
  • Create New...