Jump to content

wonsleinad

Member
  • Posts

    39
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by wonsleinad

  1. No, it doesn't, I tried that. It still continues to go through the rest of the alphabet even after matching the file. Then, after going through the alphabet it doesn't even set the variable, it tries to set the variable as "D: && goto next". It's weird, it will work in the XP version of the command prompt, but when I try it with the MS-DOS 7 boot disk, it doesn't. EDIT: I did accomplish the task with this command: SET CDROM=C IF EXIST %CDROM%:\whatever.txt GOTO done SET CDROM=D IF EXIST %CDROM%:\whatever.txt GOTO done SET CDROM=E IF EXIST %CDROM%:\whatever.txt GOTO done SET CDROM=F IF EXIST %CDROM%:\whatever.txt GOTO done SET CDROM=G IF EXIST %CDROM%:\whatever.txt GOTO done SET CDROM=H IF EXIST %CDROM%:\whatever.txt GOTO done SET CDROM=I IF EXIST %CDROM%:\whatever.txt GOTO done SET CDROM=J IF EXIST %CDROM%:\whatever.txt GOTO done SET CDROM=K IF EXIST %CDROM%:\whatever.txt GOTO done SET CDROM=L IF EXIST %CDROM%:\whatever.txt GOTO done SET CDROM=M IF EXIST %CDROM%:\whatever.txt GOTO done SET CDROM=N IF EXIST %CDROM%:\whatever.txt GOTO done SET CDROM=O IF EXIST %CDROM%:\whatever.txt GOTO done SET CDROM=P IF EXIST %CDROM%:\whatever.txt GOTO done SET CDROM=Q IF EXIST %CDROM%:\whatever.txt GOTO done SET CDROM=R IF EXIST %CDROM%:\whatever.txt GOTO done SET CDROM=S IF EXIST %CDROM%:\whatever.txt GOTO done SET CDROM=T IF EXIST %CDROM%:\whatever.txt GOTO done SET CDROM=U IF EXIST %CDROM%:\whatever.txt GOTO done SET CDROM=V IF EXIST %CDROM%:\whatever.txt GOTO done SET CDROM=W IF EXIST %CDROM%:\whatever.txt GOTO done SET CDROM=X IF EXIST %CDROM%:\whatever.txt GOTO done SET CDROM=Y IF EXIST %CDROM%:\whatever.txt GOTO done SET CDROM=Z IF EXIST %CDROM%:\whatever.txt GOTO done Still I would like to use the for command if at all possible.
  2. I am working on making a stardard dos bootup disk. In the autoexec file I am using this command to get the cd drive lettter: FOR %%i IN (C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\whatever.txt SET CDROM=%%i: The problem I'm having is I have more than one CDROM drive, and when it gets to the second drive (with no disk present) it automatically says something like: Error Accessing E:\ Abort, Retry, or Fail? Which messes up the automation of the autoexec. Is there a way that I can make the FOR command end as soon as it finds the first cdrom drive? I tried this but it did not work: FOR %%i IN (C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\whatever.txt SET CDROM=%%i: && goto next OR, would there be a way were it goes ahead and scans through all the drives, but continues regardless of an error?
  3. No you misunderstood me, I meant get a new processor because the other one is potentially damaged. If I got a new processor, it would be in addition to a new heatsink and fan. I've got a Shuttle AK32E motherboard, and the case is some old crap from a computer show. I don't have any other fans besides the one on the CPU and power supply (my graphics card doesn't need one-- I think, it's a GeForce2 MX400). However, my case is constanly open, so the system temperature is around 80F. I would say the case is also a problem becuase the power supply sits right in front of where the heatsink and fan are (with about an inch gap). I will invest in a new case and heasink & fan. Thermaltake sounds fine, as for the sound, I don't care. A constant sound helps me to sleep at night. How can I tell if my processor is damaged, it turns on and appears to be working. Will there be a loss in performance?
  4. My computer has been crashing a lot the past week or two, and I couldn't figure out why. I though perhaps it was bad ram. But, after swapping out RAM, that wasn't it. Then I started looking at the CPU temp. I left my computer in BIOS where it shows the CPU temperature; I came back about 45 min. later and it read 208 degrees F (that's about 100 C)!!!! And that is when it was idle!! It must be getting A LOT hotter when it suddenly shuts down. First of all, should I get a new CPU? I mean the one I have (Athlon 2400+) is still running, it hasn't stopped working. The max CPU I can get with my current mobo is an Athlon XP 2600+ (which will cost me $85 from newegg). What kind of fan & heasink should I get? I want to keep my CPU as cool as possible, without spending more that about $30. I have no idea what kind of heatsink/fan I have now, some cheap one the computer guy suggested when I bought my new mobo/cpu about a year ago. Just out of pure curiousity, what temperature does a CPU die? I have no idea why mine hasn't already at those temp. Edit: oh BTW, after reading that 208F temperature, I'm not even turning on my computer.
  5. Perhaps if you posted your RunOnceEx, and which Registry entries you are trying to change permissions for, I can help you a little better.
  6. For anyone who cares, I figured it out. And I used daemonscript too--thanks zoster. It took a little registry investigation, thank heavens for RegShot, but here's the process (I did this on Alcohol 120% 1.9.2.1705, so if on some future release it doesn't work, don't blame me-- and if you can't get it to work on this release don't blame me either ). 1) Install Alcohol without rebooting 2) Load the following entries into the registry: ;Register [HKEY_CURRENT_USER\Software\Alcohol Soft\Alcohol 120%\Info] "UserName"="Admin" "SerialNo"="xxxxxxx" [HKEY_USERS\.DEFAULT\Software\Alcohol Soft\Alcohol 120%\Info] "UserName"="Admin" "SerialNo"="xxxxxxx" ;Path to Alcohol [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Alcohol.exe] "Path"="C:\\Program Files\\Alcohol Soft\\Alcohol 120\\" ;Add "Mount" on Virtual Device's context menu [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shellex\ContextMenuHandlers\AlcoholShellEx] @="{32020A01-506E-484D-A2A8-BE3CF17601C3}" Note: Just to explain the registry code above a little better: The register part is what you need to use Alcohol--duh! If you don't include it, DaemonScript will create a drive but it won't work properly. I use CURRENT_USER and USERS\.DEFAULT, so the currently logged in user (me) and any account that gets created after, will be registered with Alcohol. Next the path to Alcohol is needed for DaemonScript to find Alcohol. If you don't include it, it will say Alcohol is not installed (the error I got in my previous post). The last key is so when you right click on the virtual drive in My Computer it will have the "mount" sub-menu. Obviously if you don't include it "mount" will not be on the menu. 3) Run the following command DaemonScript.exe VD1.daemonscript I attatched both DaemonScript.exe and the script (VD1.daemonscript) in a zip. Now your Virtual Drive should be working properly under My Computer. Well I really didn't test it thoroughly, as in I didn't mount anything, I just made sure it was there. Hopefully it will all work in my upcoming unattended CD. MCT, yes yes I have all that stuff. I've ran into this problem before when working with certificates. I think Windows blocks access to certain keys for security reasons. Which in this case includes keys for loading device drivers, messing with hardware, etc.
  7. Well ZoSTeR, everything was looking good for daemonscript, until I uninstalled Alcohol 120%, reinstalled it, and then tried again. Apparently if you haven't run Alcohol 120% at least once it returns the error "Alcohol 120% is not installed", even after rebooting.
  8. Try this tool http://homepages.cae.wisc.edu/~micro/regperm/
  9. Well yes, all the alcohol settings are in the registry. But in order for alcohol to do anything with them, alcohol needs to be started. Let's not get off topic, what I'm trying to do is just have alcohol auto set up the virtual drive immediately following installation.
  10. Sharky, I downloaded sleep.exe from another post, and I have no idea what it is for or how to use it. Does it just run for a specified amount of time and then close? If that's the case, I have no idea when alcohol will finish installing the device--maybe a minute, perhaps two minutes. It just doesn't sound like a very reliable way to do things. MCT, I just tried that, apparently there are certain registry entries that cannot be accessed through .reg files. I recieve an error (i attatched a screenshot)
  11. Anyone know of a way to have alcohol auto set up the virtual drive right after installation? Usually it does it on it's first load, but I would like the virtual drive to be there right after my runoncex restarts. I suppose I could auto open the application, but if I did that, I would have to close it, and I don't know of anyway for it to auto close itself after it loads the virtual drive.
  12. Oh well zippy, at least the first one is original (I hope) edmoncu, that would just be too easy
  13. Method 1 Create a file called cdrom.cmd, and put it in the $OEM$ directory of your unattended cd. In cdrom.cmd put: echo set cdrom=%cd:~0,2%>>%systemdrive%\autoexec.bat Save the file. Now add: "cdrom.cmd" to your cmdlines.txt file. This method will return your CD-ROM drive as system variable %cdrom% in the format of “X:” Note: The system variable %cdrom% will not be available until the computer restarts. If you are only doing it for RunOnceEx, it should work just fine. Method 2 Get setx.exe from your XP cd under “X:\support\tools\support.cab”, and put it in “$OEM\$$\System32” folder. In your cmdlines.txt, add: "setx cdrom -k HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\SourcePath" This method will return your CD-ROM drive as system variable %cdrom% in the format of “X:\” Final note: These methods will only work if you install windows from a CD.
  14. Is there a way to install certificates silently? I've downloaded Microsoft's certmgr.exe, and I use the command: certmgr /add yahoopops.cer /s root but apparently when trying to install certificates to root, it return with a yes|no dialogue (which I attached). Is there a parameter I can use with certmgr, or a different tool that will not show this message, maybe even a way to "slipstream" certificates?
  15. Is there a way to set a registry value as a variable using the command prompt?
  16. Is there a way to automatically set "user must change password at next logon" for a user? I know it can be done through "Administrative Tools" but I'm wondering if there is a registry value or something for this.
  17. If I did that, would it be possible to add the "fake" my pictures folder to the new xp start menu, where "My Pictures" now resides?
  18. I originally posted this in Tips and Tweaks, but it got no response; I'm hoping I'll get a reply here. Mods you can delete the post in Tips and Tweaks. With XP SP2, the Desktop background list (Control Panel | Display | Desktop), includes all the images in My Pictures. That is a lot of images for me. Is there anyway to disable searching in My Pictures, or specifying the folders it looks in?
  19. good thinking jrzycrim, but I don't think that will work. When applied during setup, it is applied to all users, but when it is delete during RunOnceEx, it is only deleted for the logged in user. That means everyone else would still have the ForceClassicControlPanel setting on. I was thinking of deleting the value from HKU\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer, but then when a user logs in for the first time, the setting wouldn't be there, and it would defeat the whole purpose. Is there a way to make a command run for each individual's first logon? Thatway I could delete it from HKCU when that user first logs in. EDIT: I think I found something. Check out this post by gosh http://www.msfn.org/board/index.php?showtopic=11308 EDIT2: Okay that method in gosh's post is for a different purpose.
  20. paul3vanz, that did the trick for that tweak, thanks. Now I have two problem tweaks left: ;Use classic view in control panel [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\WebView\BarricadedFolders] "shell:ControlPanelFolder"=dword:00000000 ;Show Internet but not Email on SM [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StartPage] "Favorites"=hex(3):00,16,00,00,00,14,00,1F,80,F4,A1,59,25,D7,21,D4,11,BD,AF,00,\ C0,4F,60,B9,F0,00,00,FF And I do not want any tweaks that FORCE the user to used specified settings. In other words I want the user to be able to change the setting if they desire, I just want to set the default.
  21. I'm not sure that I fully understand you zippy. Do you mean instead of using HKCU use HKLM? I tried that and it did work for the small icons one, but none of the others.
  22. In the code that I've seen everyone use: [HKEY_CLASSES_ROOT\Directory\shell\cmd] @="Open Command Window Here" [HKEY_CLASSES_ROOT\Directory\shell\cmd\command] @="cmd.exe /k \"cd %L\"" [HKEY_CLASSES_ROOT\Drive\shell\cmd] @="Open Command Window Here" [HKEY_CLASSES_ROOT\Drive\shell\cmd\command] @="cmd.exe /k \"cd %L\"" When you try to "open command window here" on a folder with special characters (& or ^ etc.) You get an error (I attached a screen shot). I've fixed it, hopefully, by changing it to this: [HKEY_CLASSES_ROOT\Directory\shell\cmd] @="Open Command Window Here" [HKEY_CLASSES_ROOT\Directory\shell\cmd\command] @="cmd.exe /k \"cd \"%L\"\"" [HKEY_CLASSES_ROOT\Drive\shell\cmd] @="Open Command Window Here" [HKEY_CLASSES_ROOT\Drive\shell\cmd\command] @="cmd.exe /k \"cd \"%L\"\"" All I did was add \" around %L
  23. With XP SP2, the Desktop background list (Control Panel | Display | Desktop), includes all the images on the hard drive. That is a lot of images by default. Is there anyway to disable searching the entire drive, or specifying the folders it looks in? EDIT: Now that I look at it, I think it doesn't include the entire hard drive, but it does include the "My Pictures" folder, which I have a lot of images in. Is there a way to specify it doesn't look in there?
  24. Nope ravashaak, i'm not using a domain profile. I checked the "HKEY_USERS\.DEFAULT", and all the tweaks are in there. I'm pretty sure there is some process that is run on the first login, that causes these values to change for the current user.
  25. DarkBringer, that is exactly the one I have jrzycrim, I would rather not use that one, or else the end user is forced with the classic control panel. I'm going to try something on my next install. The runonceex that is launched on the initial login, will put an entry into the runonce key that will get launched on the second login. It's not really a problem of having the wrong registry values, but that windows is changing them at some point during the initial login. I was mainly wondering if anyone knew what process, or why windows is changing this on the first login.
×
×
  • Create New...