Jump to content

IcemanND

Patron
  • Posts

    3,252
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by IcemanND

  1. Sorry, read one thing typed another. Typically on boot diskettes that file only contains ";W98EBD" or similar depending upon what os the floppy was made from.
  2. I forgot to mention, if you have another machine you can use, hook the non functioning os drive to it as slave and then copy the files. much easier than using the command console.
  3. if its already in your winnt.sif then change the values to 0 or *. If the lines are nt there at all then add them to the appropriate sections.
  4. see Microsoft Knowledge Base Article Q307545 Basically your one of your registry files is missing or corrupted and if you didn't turn System Restore off you can use a backup copy from there to repair it. Otherwise you would have to use the copy from the windows\repair folder.
  5. post your config.sys, make sure all of the files called from config.sys exist in their proper locations.
  6. Why not just use the OEMFWALL tool from M$, it enables the firewall on all connections for SP1 machines. Otherwise you have to use something like AutoIT to click the OK button. see http://www.msfn.org/board/index.php?showtopic=9508&st=0
  7. Change c:\backups to your network share location. Then this will copy the contents of all of the folders located in the same directory as itself to your share and then remove the folder and it's contents. setlocal ENABLEEXTENSIONS for /f "usebackq" %%d in (`dir /AD /b`) do ( echo %%d if /I "%%d" NEQ "." ( if /I "%%d" NEQ ".." ( xcopy %%d\*.* c:\backups rd /s /q %%d ) ) )
  8. did you check the boot order in vmware? and that the cdrom is connected at power on in the cd properties?
  9. I will work on the comma delimited list, shouldn't be too dificult once I find where I left the source code. As to removing the variables i can add a REMOVE switch which would parse the environment variables and remove all of the variables which it may have created. I won't say that it created because someone may create there own CDROM22 and it would be removed. I do not want to leave a log behind in the registry or a file. I could also make a REFRESH which would do the above and then create all new variables. Or a VERIFY which would check each variable and verify it was the right type and letter. Or maybe REMOVEMISSING to remove variables which no longer have properly associated drives. Asfar as the secret to determine drivetype I use to the DriveType Constants and Property of VB6. These are also available in vbscript as I recall.
  10. Be nice put use the code tags for you posts please. 2 things. 1. @echo off - will prevent the lines from being displayed, saves putting an @ in froint of each line. Echo lines will displayed their associated text. edit:(dang un4given1 beat me to it) 2. SetLocal & Endlocal - added to the beginning andend of the called script will make all variables in the script local to itself. @echo off set TCLK=tclock2-inst.bat set WROL=winroll-inst.bat set GV63=gvim63-inst.bat set GVRI=gvim63-reg-import.bat set CVRC=copy-vimrc-home.bat call %TCLK% 2>&1 >> %TEMP%\%TCLK% call %WROL% 2>&1 >> %TEMP%\%WROL% call %GV63% 2>&1 >> %TEMP%\%GV63% call %GVRI% 2>&1 >> %TEMP%\%GVRI% call %CVRC% 2>&1 >> %TEMP%\%CVRC% Here is a sample script -- @echo off Setlocal cls echo ---------------------------------------- set SCRIPTNAME=tclock2-inst.bat echo %SCRIPTNAME% set DRV=%HOMEDRIVE% set INFILE1=tclock2_120.zip set TARGDIR=\tclock2_120 set TARGEXE=tclock2.exe set SCLNK=tclock2.lnk set M1PTH=\tool set M1SD1PTH=%M1PTH%\system set DRVM1SD1PTH=%DRV%%M1SD1PTH% rem set INSTPTH=%DRVM1SD1PTH% set INSTPTH=%DRVM1SD1PTH%%TARGDIR% set TARGPTH=%DRVM1SD1PTH%%TARGDIR% echo %M1SD1PTH% echo %DRVM1SD1PTH% echo %TARGPTH% rem -- should not have to change anything below this line -- rem ------------------------------------------------------------ set smdir=%DRV%\Documents and Settings\All Users\Start Menu set smpdir=%DRV%\Documents and Settings\All Users\Start Menu\Programs set smpsudir=%smpdir%\Startup rem echo %smdir% rem echo %smpdir% rem echo %smpsudir% set M1SD1SCPTH=%smpdir%%M1SD1PTH% set SUSCPTH=%smpsudir% echo %M1SD1SCPTH% echo %SUSCPTH% set LCLSC=shortcut.exe set LCLUNZIP=unzip.exe rem ------------------------------------------------------------ echo ---------------------------------------- rem to test only shortcuts, use the next statement rem goto :SHORTCUT rem ------------------------------------------------------------ if not exist %LCLSC% ( echo Error: missing file -- %LCLSC% goto :DOSEXIT ) if not exist %LCLUNZIP% ( echo Error: missing file -- %LCLUNZIP% goto :DOSEXIT ) rem ------------------------------------------------------------ if not exist %INFILE1% ( echo Error: missing file -- %INFILE1% goto :DOSEXIT ) if not exist %INSTPTH% ( mkdir %INSTPTH% if ERRORLEVEL 1 ( echo Error: mkdir %INSTPTH% failed goto :DOSEXIT ) ) echo copy %INFILE1% %INSTPTH% copy %INFILE1% %INSTPTH% if ERRORLEVEL 1 ( echo Error: copy %INFILE1% to %INSTPTH% failed goto :DOSEXIT ) echo ---------------------------------------- echo %LCLUNZIP% -o -d %INSTPTH% %INSTPTH%\%INFILE1% %LCLUNZIP% -o -d %INSTPTH% %INSTPTH%\%INFILE1% if ERRORLEVEL 1 ( echo Error: unzip %INFILE1% to %INSTPTH% failed goto :DOSEXIT ) rem to test all but shortcuts, use the next statement rem goto :DOSEXIT rem ------------------------------------------------------------ :SHORTCUT echo ---------------------------------------- echo %LCLSC% /F:"%M1SD1SCPTH%\%SCLNK%" /A:C /T:"%TARGPTH%\%TARGEXE%" %LCLSC% /F:"%M1SD1SCPTH%\%SCLNK%" /A:C /T:"%TARGPTH%\%TARGEXE%" if ERRORLEVEL 1 ( echo Error: Shortcut failed %M1SD1SCPTH%\%SCLNK% goto :DOSEXIT ) echo ---------------------------------------- echo %LCLSC% /F:"%SUSCPTH%\%SCLNK%" /A:C /T:"%TARGPTH%\%TARGEXE%" %LCLSC% /F:"%SUSCPTH%\%SCLNK%" /A:C /T:"%TARGPTH%\%TARGEXE%" if ERRORLEVEL 1 ( echo Error: Shortcut failed %SUSCPTH%\%SCLNK% goto :DOSEXIT ) rem ------------------------------------------------------------ del %INSTPTH%\%INFILE1% if exist %INSTPTH%\%INFILE1% ( echo Error: %INSTPTH\INFILE1% del cmd failed ) rem ------------------------------------------------------------ echo off rem these must be the final lines in the script :DOSEXIT echo ---------------------------------------- echo if Error: recheck -- %SCRIPTNAME% endlocal
  11. you will not see the variables created until you open a new cmd window, but if you go to 'System Properties -> advanced -> environment variables' they should be listed there. Since the variables are directly written to the registry they are not available to the calling CMD script.
  12. In short, NO. This program queries windows for the drive mappoints and then creates the environment variables. I don't know of a way to differentiate between drive tyes in DOS if someone knows a way I'd be glad to rewrite or assist in creating a dos version.
  13. As in dos 6 or from the CMDline in 2k or XP?
  14. Never tested it in 2K. All of my systems and clients use XP. I'll check it out next week when I can rebuild a system with 2K and see whats going on.
  15. have some fun, ask for a copy of the support call. then ask for a refund of the support fee. After all the customers data is the second most important thing when working on a customers system. And since he was doing this remotely the number one concern doesn't qualify.
  16. if none of those suggestions work try this: start - run - regsvr32 /u iuctl.dll go to c:\windows\system32 and delete iuctl.dll, iuengine.dll and iuenginenew.dll (may not be there) go to c:\program files delete the WindowsUpdate folder. (Note you will lose your installation history on the windowsupdate web site.) delete c:\wutemp reboot and try again.
  17. I wrote a utility DetectDrive which will create a permanent environment variable for any drive attached to the system, except the floppy. After running it just check each %rREMOVABLEx% variable for the a file you know will be there and away you go.
  18. Use Devcon download from microsoft http://support.microsoft.com/?kbid=311272 more info here: http://msdn.microsoft.com/library/default....41d1c74.xml.asp
  19. is this an unattended os install cd? if so then depending upon the options set in your winnt.sif file you cannot use F6 to install driers from floppy. do a search for textmode sata driers there are numerous solutions to this problem. Or use Bashrat's driver pack.
  20. http://folding.stanford.edu/
  21. When you write the policy include in it that any files found will be deleted and then run a script every night to delete *.mp3, *.avi etc.
  22. To add defaults: (See second FOR statement) @echo off setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION cls set TmpPath=. set tlist="sub1" "sub2" "sub 5" "sub 8" "sub 9" SET fulllist= for /d %%i IN (*) DO set fulllist=!fulllist! "%%i" for %%j IN ("SUB0" "COMMONFILES" %tlist%) do call set fulllist=%%fulllist:%%j=%% for %%k IN (%fulllist%) DO echo %%~k Your way is cleaner but harder to pass the list: (one way) set tlist=/c:"sub1" /c:"sub2" /c:"sub 5" /c:"sub 8" /c:"sub 9" DIR /AD /B | FINDSTR /R /V /I /C:"Common Files" %tlist% another way: (limited to 9 sub directories) set tlist=/c:"sub1" /c:"sub2" /c:"sub 5" /c:"sub 8" /c:"sub 9" call:continue %tlist% goto:end :continue DIR /AD /B | FINDSTR /R /V /I /C:"Common Files" %1 %2 %3 %4 %5 %6 %7 %8 %9 :end One last option: setlocal ENABLEDELAYEDEXPANSION set tlist="sub1" "sub2" "sub 5" "sub 8" "sub 9" for %%j IN ("SUB0" "COMMONFILES" %tlist%) do set switchlist=!switchlist! /C:%%j DIR /AD /B | FINDSTR /R /V /I /C:"Common Files" %switchlist%
  23. Use Devcon download from microsoft http://support.microsoft.com/?kbid=311272 devcon disable =fdc devcon disable =usb
  24. We really have to stop meeting this way. @echo off setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION cls set TmpPath=. set tlist="sub1" "sub2" "sub 5" "sub 8" "sub 9" SET fulllist= for /d %%i IN (*) DO set fulllist=!fulllist! "%%i" for %%j IN (%tlist%) do call set fulllist=%%fulllist:%%j=%% for %%k IN (%fulllist%) DO echo %%~k
  25. Try this: (originally posted here Nov. 2003, man I've been here too long.) If you haven't already done it turn off "Use Simple file sharing" To do this open my computer, select tools menu, folder options. All the way at the bottom of the list on the Views tab under advanced settings is a check box to "Use simple file sharing (Recommended)" remove the checkmark and click OK to close the Folder Options window. Now right click on the drive/folder with the problem. (If you select the drive you can reset permissions for all files/folders contain on it and start over.) Select Properties and then select the Security Tab. Click the Advanced button. Select the Owner tab. Select your preferred user name or group, and place a check in the box for "Replace owner on subcontainers and objects" Click OK and wait it takes about 5-10 minutes dependingupon the size of your drive and how much stuff you have on it. If it comes up with a security warning click yes to replace permissions.
×
×
  • Create New...