Content Type
Profiles
Forums
Events
Everything posted by Yzöwl
-
You're not supposed to 'delete' them, they are built-in, protected by WFP and therefore reside in those locations for a reason.
-
Batch scripting queries.
Yzöwl replied to Valerie's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Unfortunately not, you'll need to use 'Set'. I'd just like to make a few observations. Your script would need EnableDelayedExpansion A confusion has occurred; Use either "Delims=" or "Tokens=*" If you have the batch file in the same directory as your files to be renamed, you'd need to make sure that the batch file itself isn't renamed too! Example without delayed expansion @Echo off&Setlocal For /f "delims=" %%A In ('Dir/b/o-n/a-d^|Findstr/vix "%~nx0"') Do ( Set "name=%%~nA"&Call Set "name=%%name:~3%%" Call Ren "%%A" "%%name%%%%~xA") -
Let me start by thanking you for your first post and its associated content. Please ensure whilst utilising this software that your read and adhere to any licensing agreement!
-
Is there anything else you want me to type into the search engine whilst I've got it open?
-
CMD program run background
Yzöwl replied to narayanaswamy's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
What app, (or at least what type), is it? If the app' has a commandline interface as opposed to GUI its execution may need to be implemented differently. -
CMD program run background
Yzöwl replied to narayanaswamy's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
I'm afraid you'd need to give us a lot more than you have if you wish a different solution to that you've thus far received. -
The only settings you should be changing are these: If using RunonceEx doesn't work for you perhaps you should add the registry changes after that followed by a reboot or before it by directly modifying the appropriate hive file.
-
Unatended install won't work(winXP apps)
Yzöwl replied to bookert2003's topic in Application Installs
Look! Also in the version 9 example I'd suggest you add the missing closing double-quote. -
XP SP3 Unattanded - start.cmd timing.
Yzöwl replied to ziaxboss's topic in Unattended Windows 2000/XP/2003
Have you read this? -
XP SP3 Unattanded - start.cmd timing.
Yzöwl replied to ziaxboss's topic in Unattended Windows 2000/XP/2003
I think you may need to explain yourself a little better. We have no idea what the content of your start.cmd is, or what you are installing, (Is it the Broadcom NetXtreme Gigabit Ethernet Driver). IE6 is already part of XP so does not need to be installed. Are you telling us that a driver installation is opening your Web browser which as a result begins the IE6 first run/configuration steps. If so what is the driver etc. without this information we will be unable to find out if it is possible to supress this behaviour. -
They serve as line concatenation symbols in inf files. This means that I can break the line of code and continue on the next line without spoiling the reading of the line by having it too long. You'll very likely have seen something similar used for REG_BINARY code in .reg files. Yes simply because it's correct syntax and prevents possible mistakes later if you decide to include any of the following; icon-file-name, icon-index, profile or start-in-location.
-
I think it's got something to do with the fact, your inf is basically writing an ini file, that file then needs to be read and in order for the target to have double-quotes, the ini would need to have escaping double-quotes. In order for the ini to have both sets of quotes the inf needs to do the same. Anyway, I've tested in Windows 2000 and updated the appropriate previous post to suit all 3 OS's. Here is the working test I used for your file on Win2k: [Version] Signature = "$Windows NT$" [DefaultInstall] UpdateInis = AddLink [AddLink] setup.ini, progman.groups, ,\ group1=%16410%\Microsoft\Internet Explorer\Quick Launch setup.ini, group1, ,\ "Regshot Unicode,""""""%16422%\Regshot Unicode\Regshot.exe"""""""
-
$oem$\$1\install folder not getting copied?
Yzöwl replied to geebee's topic in Unattended Windows 2000/XP/2003
This may help. -
how can I identify if OS is 32 bit or 64 bit in batch file?
Yzöwl replied to DungFu's topic in Application Installs
<snip /> It's always worked for me, which is why I used it. It is wrong, the first line would produce an error every time 'expanded or otherwise variable' is not recognized as an internal or external command, operable program or batch file. For the next line you could have used among others: IF ERRORLEVEL 1 GOTO x64 IF %ERRORLEVEL%==1 GOTO x64 IF %ERRORLEVEL% EQU 1 GOTO x64 IF %ERRORLEVEL% GEQ 1 GOTO x64 IF NOT ERRORLEVEL 0 GOTO x64 Are you sure?Run this code in your console window IF EXIST "%PROGRAMFILES(X32)%" (ECHO/32BIT) ELSE (ECHO/64BIT)Result is: 64BIT Now run this in your console window IF EXIST "%PROGRAMFILES(X32)%" ECHO/32BIT ELSE ECHO/64BITWhat is the result? -
$oem$\$1\install folder not getting copied?
Yzöwl replied to geebee's topic in Unattended Windows 2000/XP/2003
Well I'm afraid wih the information you've provided I cannot really help you. I've got no idea what Adobe.exe is, the only time I've seen this file is on malware infected client PCs! -
Howto: Create shortcuts through NT Command scripts.
Yzöwl replied to Martin H's topic in Unattended Windows 2000/XP/2003
As an addition to the above, the original topic is located here. As an update, later on in the topic I decided to re-evaluate the information in order to hopefully reduce some of the confusion with numbers of double-quotes. Here therefore is my updated post, which may help too. You may also notice later in the topic a reminder of the newer method of creating shortcuts using infs which may also help some of you. -
$oem$\$1\install folder not getting copied?
Yzöwl replied to geebee's topic in Unattended Windows 2000/XP/2003
Try not only to make sure you've spelled things correctly, but also to put the Install directory in the correct location! D:\XPCD\$OEM$\$1\Install This will copy it ito %SystemDrive% during setup as per your RunOnceEx.cmd. P.S In the script you've provided there appears to be missing double quotes on your n-Lite.exe line. -
Just remember what I said: Home Edition doesn't have WMIC.Here is the single line code you'll need to achieve your goal. WMIC ENVIRONMENT CREATE Name="SEE_MASK_NOZONECHECKS",UserName="<SYSTEM>",VariableValue="1"Bear in mind that if you've never used WMIC before on that system a short delay will occur whilst it is 'installed' in order to run the code.
-
That all depends! What OS and version? At which stage of the installation you feel it necessary to implement the change. What method(s) you are currently using to deploy the OS. The best method for me would to be to use WMIC, (which requires at least XP Professional), but you could choose to add the data to the appropriate registry key at the appropriate time or alternatively run a vbscript or third party utility. The more useful the information provided by you in your question the greater the likelihood of more useful responses!
-
Need help to create bat file or vbs
Yzöwl replied to hessam's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
You don't need to create a directory first, if you are using move just do this! move "%systemdrive%\install\Rexxar" "%userprofile%\desktop" To set the wallpaper you'd need to use a specialist utility such as Set Wallpaper v1.10 (SetWallpaper.zip) Last Updated: 11/21/2000 You may also have trouble because your image is a .jpg as opposed to .bmp. -
integrate into windows shell "new"
Yzöwl replied to maniaq's topic in Unattended Windows 2000/XP/2003
I've uploaded an example, 'New .cmdfile here'. Hope it helps! -
You're mixing both HKLM and HKCU, should they not all be the same?
-
objShell.Run problem
Yzöwl replied to Tripredacus's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
That shouldn't make any difference, you can use accesskey with input as well as button: 'Test run, use Alt-k to run the script from the hta <script language="vbscript"> Sub RunAdmin CreateObject("WScript.Shell").Run "fscommand\admin.exe" End Sub </script> <body> <input id=runbutton style="width:0" class="button" type="button" value="Admin Prompt" accesskey="k" name="admin_button" onClick="RunAdmin"> </body>