Content Type
Profiles
Forums
Events
Everything posted by Yzöwl
-
Folder Icons and the $OEM$ folder
Yzöwl replied to cumminbk's topic in Unattended Windows 2000/XP/2003
Using the attrib command does seem to work too. The rarred folder I used has 'read only' and 'folder' status, whereas your method gives it 'system' and 'folder' status. Any of you customization guys willing to explain a proper method? -
Folder Icons and the $OEM$ folder
Yzöwl replied to cumminbk's topic in Unattended Windows 2000/XP/2003
No idea either, I've had very similar results myself! So far the only working solution I have found is to create the folder, properties => customize => change icon, then rar the folder. Unrar to your desired location worked every time! Just as a test, unrar this, and see if it works. My_Papers.rar -
assigning commandline variables
Yzöwl replied to jbm's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
actually your only problem was the additional spaces before and after the equals symbol set what=%1 if Not DEFINED what set /P what=? echo %1 echo %what% -
Is this what you mean? @echo off setlocal enableextensions for /f "tokens=*" %%a in ( 'reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v desktop' ) do ( set myvar=%%a ) echo/%%myvar%%=%myvar% pause endlocal goto :eof
-
cant apply regtweaks at cmdlines.txt stage
Yzöwl replied to darksimoon's topic in Unattended Windows 2000/XP/2003
See if this helps! regtweaks.cmd @echo off&title %~n0&color 0b&setlocal enableextensions pushd %~dp0&for %%a in ("*.reg") do call :addreg "%%~fa" popd&endlocal&goto :eof :addreg regedit /s %1&&goto :eof <Edit> If this still fails to run each reg file, you should try changing the last line to start "" /w regedit /s %1&&goto :eof or change the whole file to @echo off&title %~n0&color 0b&setlocal enableextensions&pushd %~dp0 for %%a in ("*.reg") do start "" /w regedit /s "%%~fa" popd&endlocal&goto :eof</Edit> -
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel] "{645FF040-5081-101B-9F08-00AA002F954E}"=dword:00000001
-
Although I don't recommend deleting in this manner, here is a compiled batch file which will likely do what you wish. <Edit> I have made a slight alteration to it which may have prevented some files with spaces in their names from being deleted. </Edit> NoJps.zip
-
Batch File Help - If Clauses
Yzöwl replied to phillyman2004's topic in Unattended Windows 2000/XP/2003
IF NOT EXIST "drive\path\blank.dat" ( IF EXIST "drive\path\done.dat" ( REN "drive\path\done.dat" "blank.dat" ) )<Edit> This way it ensures that if the file doesn't already exist it will only rename it if the file you wish to use for the rename procedure exists. </Edit> -
As a quick and dirty solution you could replace My Pictures and /or My Music with your own locations and then show them on the Start Menu. just replace the paths in HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\My Music HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\My Music and /or HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\My Pictures HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\My Pictures remembering that the 'User Shell Folder' keys are REG_EXPAND_SZ
-
I'm not sure how you're copying but if you use XCOPY instead of COPY xcopy /? it will reset read-only attributes if you don't use the /K switch.
-
I would use the HKLM key since the HKCU doesn't exist in a default installation, also I would create a named key, not use the default, @, key. [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce] "RunMyCmd"="%systemdrive%\\install\\file.cmd"The other thing you will have to do is ensure that the folder, install, and file, file.cmd, have not been removed as part of a cleanup routine prior to the reboot.
-
If you were to use wsh and vbs you could probably perform the task regardless of OS language. NoLinx.vbs Const ALL_DESKTOP = &H19& Const CUR_DESKTOP = &H10& Set objShell = CreateObject("Shell.Application") Set objAllDskFldItem = objShell.Namespace(ALL_DESKTOP).Self Set objCurDskFldItem = objShell.Namespace(CUR_DESKTOP).Self Set objShell = WScript.CreateObject("WScript.Shell") Set objFileSystem = CreateObject("Scripting.FileSystemObject") strAllDskFld = objAllDskFldItem.Path strCurDskFld = objCurDskFldItem.Path On Error Resume Next objFileSystem.DeleteFile(strAllDskFld & "\*.lnk") objFileSystem.DeleteFile(strCurDskFld & "\*.lnk") <Edit> Added On Error Resume Next prevents failure if either %AllUsersProfile% or %UserProfile% locations do not contain a .lnk file. </Edit>
-
There should be two keys to check, if you enter the following two lines one at a time, (clicking the OK after each), into your Run dialog, they should be at Windows default settings again. REG ADD "HKCU\Software\Microsoft\Windows\CurentVersion\Explorer\User Shell Folders" /v Favorites /t REG_EXPAND_SZ /d "%%USERPROFILE%%\Favorites" /f REG ADD "HKLM\Software\Microsoft\Windows\CurentVersion\Explorer\User Shell Folders" /v Favorites /t REG_EXPAND_SZ /d "%%ALLUSERSPROFILE%%\Favorites" /fYou will need to reboot for the changes to take effect.
-
Copy & Paste these four commands one at a time in the order given into the Start » Run box and hit Ok after each. cmd /c dir /b/a-d %userprofile%\Desktop>%Temp%\_Dsk.txt cmd /c echo/- - - - - - - - - - - - - - ->>%Temp%\_Dsk.txt cmd /c dir /b/a-d %allusersprofile%\Desktop>>%Temp%\_Dsk.txt %Temp%\_Dsk.txtThen paste the file which opens between code tags into a reply here! <Edit> When you've done it, and after closing your Text Editor application, you can enter this to remove the file del /q %Temp%\_Dsk.txtNote As suggested by BoardBabe, if your OS is not in a language which is compatible with the commands, you will have to change them to suit.</Edit>
-
What a shame then… The batch file was actually 153 bytes before I compiled it too! and tidied up, fully working, it weighs in at 97 bytes Your example, wouldn't work for a large proportion of the readers here and is still 109 bytes in size. Tidied up, and still not as accurate as mine weighs in at 160 bytesIF EXIST "%AllUsersProfile%\Desktop\*.lnk" DEL /Q "%AllUsersProfile%\Desktop\*.lnk" IF EXIST "%UserProfile%\Desktop\*.lnk" DEL /Q "%UserProfile%\Desktop\*.lnk" <Edit> Remember size doesn't matter, but if a 146Kb executable which will run without a window, and does exactly what you want it to do, doesn't fit on your installation media, you should have been a little clearer in your question. </Edit>
-
Even better, use this! just run the exe… noshtcut.zip
-
As far as I know there isn't one. From the registry, the keys changed are [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Desktop\Components] "RestrictChannelUI" [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer] "ShellState" [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] "HideIcons"The RestrictChannelUI hex value is set for 'hidden' and removed for 'shown'. The ShellState hex value data will be different for some users, therefore no one size fits all, on top of that it is the third pair which changes in the hex code for the toggle. The HideIcons dword is a simple change between 0, (shown), and 1, (hidden). Additionally the registry changes would require a reboot of explorer.exe to take effect
-
As jbm has already answered your request, for tutorial purposes, here's an example of how you would ask for the names etc in a batch file @echo off&setlocal enableextensions :: If the account needs a password, enter it after the equals symbol below :: If the account doesn't require a password leave it blank :: if you use spaces please do not start or end with them set newpword= :: Which type of account group would you like for this user :: Users is the default if left blank :: If you wish to change it enter your group after the equals symbol below :: examples :: Administrators :: Backup Operators :: Guests :: HelpServicesGroup :: Network Configuration Operators :: Power Users :: Remote Desktop Users :: Replicator :: Users set accntype= :: You need make no changes below here... :AddFull set realname= echo/ Please enter your full name... set /p realname= if '%realname%' equ '' goto AddFull echo/ Your full name is %realname% set /p answr=Is this correct Y/N? set answr=%answr:~0,1% if /i '%answr%' neq 'y' goto AddFull :LogiName cls set nickname= echo/ Please enter the login name you wish to use... set /p nickname= if '%nickname%' equ '' goto LogiName echo/ Your login name is %nickname% set /p answr=Is this correct Y/N? set answr=%answr:~0,1% if /i '%answr%' neq 'y' goto LogiName echo/ Thank you %realname% IF '%newpword%' EQU '' ( NET USER "%nickname%" /ADD /fullname:"%realname%" /passwordreq:no ) else ( echo/ YOUR PASSWORD IS %newpword% echo/ echo/ IMPORTANT the password is case sensitive echo/ please make a note of it, you will need echo/ it in order to gain access to this PC! pause NET USER "%nickname%" "%newpword%" /ADD /fullname:"%realname%" ) IF '%accntype%' equ '' ( NET LOCALGROUP Users "%nickname%" /ADD ) else ( NET LOCALGROUP "%accntype%" "%nickname%" /ADD ) NET ACCOUNTS /MAXPWAGE:UNLIMITED endlocal&goto :eof
-
The Telnet service is Disabled by default in your version of Windows anyhow! The easiest way is to delete the service sc delete tlntsvrin the run box should do it! The following are all the Telnet service dependencies: "SystemRoot\system32\GDI32.DLL" "SystemRoot\system32\KERNEL32.DLL" "SystemRoot\system32\MSVCRT.DLL" "SystemRoot\system32\NTDLL.DLL" "SystemRoot\system32\NTLSAPI.DLL" "SystemRoot\system32\OLE32.DLL" "SystemRoot\system32\OLEAUT32.DLL" "SystemRoot\system32\PSAPI.DLL" "SystemRoot\system32\RPCRT4.DLL" "SystemRoot\system32\TLNTSVR.EXE" "SystemRoot\system32\USER32.DLL" "SystemRoot\system32\WS2_32.DLL" "SystemRoot\system32\WS2HELP.DLL"If you wanted to completely remove Telnet you would have to ascertain which of the above were unique only to that service and remove those. <Edit> From my tests, no other service has the following depencencies "SystemRoot\system32\NTLSAPI.DLL" "SystemRoot\system32\PSAPI.DLL" "SystemRoot\system32\TLNTSVR.EXE"However more programs may depend on the dlls. Your safest bet would to be delete the service using sc.exe as above. You could delete telnet.exe from system32 if you feel the need. </Edit>
-
Unable to cast my vote, I'm with dman, IZArc Homepage
-
Incidentally, just a point of note, the file I made for you was hand created from the information you provided in your attachment; no external programs were used.
-
Your file only contained the info from the install, plus the file extensions for text files and the internet explorer source editor. I removed all useless stuff for your benefit. If you wish to save yourself the trouble of asking in future, download this version of regshot instead! With it you can even make ini file changes to auto ignore certain 'useless' entries. It's just a case then of learning which entries are /aren't necessary. Hope the info helps.
-
Try this! win32pad.reg
-
Remove Updater folder created by Photshop CS2
Yzöwl replied to BoardBabe's topic in Application Installs
For the paranoid among you who believe that Adobe can still use a hidden folder, regardless of the fact you've asked them not to! If the folder is just a file in disguise, then they cannot! I can still put the photographic evidence of yourself and you know who, in your spouses hidden purse, especially as I know where it is kept. However if the hidden purse is only a piece of paper pretending to be a purse, then I cannot.