oh yes; Code: @echo off IF ''%processor_architecture%'=='x86' ( Set File=32Test.txt ) ELSE ( Set File=64Test.txt ) thanks again, what other cmds need the %%blah%% ?
To name a few: Code: PROCESSOR_ARCHITECTURE ALLUSERSPROFILE USERPROFILE USERNAME COMMONPROGRAMFILES LOCALAPPDATA PUBLIC PROGRAMDATA APPDATA COMPUTERNAME COMSPEC HOMEDRIVE HOMEPATH PATH PATHEXT PROGRAMFILES PROGRAMFILES(X86) PROMPT SYSTEMDRIVE SYSTEMROOT WINDIR TEMP TMP DATE TIME CD ERRORLEVEL RANDOM http://vlaurie.com/computers2/Articles/environment-variables-windows-vista-7.htm
^ta, now for creating an xml file, you know how xml's are set out with spacing like this; is it really necessary to have the spacing set like that or can the script just start from the the start of the doc?, if not how do you get the line spacing in the cmd?
Example: Note the placements of ^ Code: echo ^<OOBE^> >>"%~dp0ai.xml" echo ^<HideEULAPage^>true^</HideEULAPage^> >>"%~dp0ai.xml" echo ^<HideWirelessSetupInOOBE^>true^</HideWirelessSetupInOOBE^> >>"%~dp0ai.xml" echo ^<ProtectYourPC^>1^</ProtectYourPC^> >>"%~dp0ai.xml" echo ^<NetworkLocation^>Home^</NetworkLocation^> >>"%~dp0ai.xml" echo ^</OOBE^> >>"%~dp0ai.xml" echo ^<VisualEffects^> >>"%~dp0ai.xml" echo ^<FontSmoothing^>Standard^</FontSmoothing^> >>"%~dp0ai.xml" echo ^</VisualEffects^> >>"%~dp0ai.xml"