zammalabe Posted September 1, 2005 Posted September 1, 2005 i made a little bat file "tempdir.cmd"@echo offTITLE Create temp directorycd /d c:md tempfor %%i in (C D E F G H I J) do if exist %%i:\CDROM_IP.5 set CD=%%i%systemroot%\regedit.exe /s %CD%:\i386\svcpack\temp.regexitthat i put into svcpack folder and call from svcpack.inf [setupHotfixesToRun] section.;Windows 2000 Professional;!!!!!! delete svcpack.in_ in the I386 directory !!!!!![Version] Signature="$Windows NT$" MajorVersion=5 MinorVersion=0 BuildNumber=2195 [SetupData]CatalogSubDir="\i386\SVCPACK"[SetupHotfixesToRun]HFSLIP1.CMDHFSLIP2.CMDHFSLIPIE.CMD;temp foldertempdir.cmdthe problem is that the corresponding reg file "temp.reg"Windows Registry Editor Version 5.00[HKEY_CURRENT_USER\Environment]"TEMP"="c:\\temp""TMP"="c:\\temp"[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment]"TEMP"="c:\\temp""TMP"="c:\\temp"[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Session Manager\Environment]"TEMP"="c:\\temp""TMP"="c:\\temp"[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]"TEMP"="c:\\temp""TMP"="c:\\temp"is nicely imported into registry, but the folder "temp" is not created! why?? running from command prompt, the folder is created without a problem (it so simpel command ... ) but running the same from svcpakc.inf nothing happens can someone put me in right way??
gunsmokingman Posted September 1, 2005 Posted September 1, 2005 Make A SFX rar file and place the cmd in there.
zammalabe Posted September 1, 2005 Author Posted September 1, 2005 yeah the answer was as simpel as was the question: the code:@echo offTITLE Create temp directorycd /d c:md tempdidn't create the directorybut the code:@echo offTITLE Create temp directorycd /d c:md c:\tempmade the temp directory maybe there should be command extensions enabled or somethign else to use the simplest syntax (ie md temp). i dunno :/ in command shell both make a directory.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now