Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


  • Content Count

  • Donations

  • Joined

  • Last visited

Community Reputation

0 Neutral

About sweept

Contact Methods

  • Website URL
  1. I just tried UFD_FORMAT tool on This the tool says it formatted the drive successfully the drive still shows as NTFS and the files that where on it stayed in place the process did add its files to drive formatting in windows offers no FAT32, only NTFS or exFAT maybe i could try RMPrepUSB, but then what settings will i need to use ?
  2. Hi I'm really interested to make a USB bootable on all systems especially the ones that can only run on USB drives configured for x64 or UEFI for now IM only using the Microsoft windows setup (x86) wim for running a script that uses imagex on those systems (the USB drive isn't recognized after boot, ..before Setup) My first question is: must I have to acquire a x64 boot wim for the process And if don't: What files do I need to include on the USB root, are they the ones found in "C:\Make_PE3\win7pe_x86\*" ? Or if I do need to build "C:\Make_PE3\win7pe_amd64\*" .. How do I populate it with needed files So Im really looking for hints on how to make this all work TIA
  3. hi I'm trying to get the first letter for a drive letter from each line using for command for example : a line in paths.txt "E:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" setlocal enabledelayedexpansion for /f "tokens=*" %%A in (paths.txt) do ( set drive=%%~dA If Defined drive ( set drive=%drive:~0,1% ) echo %drive% ) I can't get the command part to work I appreciate any help on this TIA
  4. RegWrite('HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\INTERNET EXPLORER\MAIN','START PAGE', "REG_SZ", $strHome) checked ok REG_BINARY still not applying correctly.. looking..
  5. $strHome = InputBox("HOmepage","Provide your chosen Homepage","https://www.google.com/") if $strHome == "" then Exit RegWrite("HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\INTERNET EXPLORER\MAIN", "START PAGE", "REG_SZ", "$strHome") RegWrite('HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections','DefaultConnectionSettings',"REG_BINARY","3c000000110000000100000000000000000000000000000001000000000000000000000000000000000000000000000000000000") $SED=(@ScriptDir & "\sed.exe") $path = EnvGet("USERPROFILE") & "\Local Settings\Application Data\Google\Chrome\User Data\Default\Preferences" If FileExists($Path) Then RunWait(@ComSpec & " /K " & '.\sed.exe -i "/invalidator/i \ \"homepage\": \"$strHome&\",\n\ \"homepage_is_newtabpage\": false," " '&$path&'', "", @SW_SHOW) EndIf I'm now trying to incorporate this into autoit but I'm having trouble with the command strings .. for the sed.exe command I'm using sed for windows .. the one with the RegWrite REG_BINARY it is aimed to tick off "automatically detect settings" in IE. but it is also adding none wanted digits to the proxy server settings from cmd it is adjusted correctly as so: REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections" /f /v "DefaultConnectionSettings" /t REG_BINARY /d 3c000000110000000100000000000000000000000000000001000000000000000000000000000000000000000000000000000000"
  6. another question is there a way to make double click in the text capture\highlight between fragments of the text with this vb box or some other tool that will do it http://www. [highlight]google[highlight].com/
  7. thank you guys for the great info I can better manage it now
  8. I'm now looking for it to run this way where it will start /wait homepage.bat where there i can carry out commands my code syntax is of course incorrect Set objShell = CreateObject("Wscript.Shell")strHome = InputBox("Provide your chosen Homepage:", "Homepage", "http://www.google.com/")If strHome = "" Then Wscript.QuitEnd IfstrCommand = "%COMSPEC% /c "homepage.bat" "" & chr(34) & strHome & chr(34) & ""objShell.Run strCommandwas looking at gunsmokins example where i can start the vbs from cmd but i want the process to quit as soon as cancel is selected .. I too need the default address offered as in Yzöwls example i tried looking into it but couldn't get it work as needed
  9. thank you Yzöwl for your reply the command alone is what im interested to run from batch cmd (not from vbs)getting what is set in the input box sent to batch (called to batch) so far I have tried the script as SetHome.vbs but it throws an error---------------------------Windows Script Host---------------------------Script: SetHome.vbs Line: 1Char: 45Error: Expected end of statementCode: 800A0401Source: Microsoft VBScript compilation error
  10. Hi, Im looking for something that will allow me to set a parameter for a batch job in a way so i can type something that will set a var and direct\call to batch job. Not from set /p but from a shell box. for instance a simple batch tool that will set homepage for the browser: I want it to perform in a way so that it will pop a shell box, saying "set home page to ___" and have a default parameter in it, as "www.google.com" but so i can type a different feed \address to it and then this calls or sets a %var% to the hidden batch job that will run for instance REG ADD HKCU\SOFTWARE\MICROSOFT\INTERNET EXPLORER\MAIN" /V "START PAGE" /D "%1%" /F or REG ADD HKCU\SOFTWARE\MICROSOFT\INTERNET EXPLORER\MAIN" /V "START PAGE" /D "%homepage_var%" /F the only emphasis is that it will redirect the parameter back to a batch job i suppose this can be achieved with vb script help and maybe some batch help thanks in advance
  11. I couldn't have managed this without your help. 100% worth's of understanding and help effort. Thank you 5eraph
  12. hi, I'm trying to strip out pairs of names (none defined) holding different .ext, from inside a text file Meaning; if a name appears more then once, Then it's name will get stripped regardless its extension : index France.pdf En.txt En.pdf En.ini ..... -after :New_index France.pdf TIA Edit: also, if this can be written without a subroutine to make it simpler ..
  13. Thanks 5eraph I found what I needed now! at first glance I couldn't figure whats achieved using a dir command ..That /od switch (cool) that was one great vast example Thanks again!!! & to youYzöwl &members viewing thanks for you's patience
  14. As to newest I meant Newer soo Sorry I need to check my vocabulary sometime!!! The subroutine needs to pick\Find which one is newer by the file's time-stamp. Setting the latest one for the command ..
  15. Hi, I'm looking for a way to process two or more files that will SET (pick up) the newest file for %%# in (%*) do set newest |@copy newest ..(command) Example between: %~dpn1.log and a named one %~dp1Default.log If neither Exist abort command..
  • Create New...