Jump to content

duhu

Active Members
  • Posts

    31
  • Joined

  • Last visited

Everything posted by duhu

  1. K, im building a small aplication for changing bootscreens, and im stuck into a problem with the boot.ini file. heres the problem: I need to add one more line to the [operating systems] section but i cant because if i use iniwrite that chenges the current key/value under the [operating systems] section.Heres an example boot.ini [boot loader] timeout=30 default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS [operating systems] multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Default bla bla bla" /noexecute=optin /fastdetect /kernel=booton.exe multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Test the new bootscr" /noexecute=optin /fastdetect /kernel=booton.exe --------------------this line (starting from "multi(0) bla bla) i want to ADD it under the first line, but i cant beacause if i use iniwrite it changes the first line into the second, NOT add it . i hope u guys understand, so plss hllp and sorry for my bad eng
  2. ive got it to work using this: func defragpressed() SplashTextOn ( "XP-tools kit v1.0", "Asteapta !!!", 300, 100, -1, -1, 0, "Comic Sans MS Bold", "14" ) $PID = RunWait(@ComSpec & " /c " & 'start /w /min data\Def.vbs', "", @SW_HIDE) WinWaitActive("") ProcessWaitClose($PID) SplashOff ( ) Endfunc thx @Lxp
  3. Yours,(Valuater) and the other1...i'll test it now.
  4. That didnt work! its start Diskeeper.is there anyway how to use that vbs script?
  5. Heres a more explained version of my question:When the vbs script start it starts 2 processes (i saw that in task manager) defrag.exe , dfrgntfs.exe.Now....i need the splash to stay (it say Pls wait, in romanian) until the defrag is over, because when the defragmentation process is over the 2 processes defrag.exe , dfrgntfs.exe, closes, so i think i can use the ProcessWaitClose comms to make the splash stay until the defrag is over, but i dont know what to do with that psapi.dll in order to get the ProcessWaitClose comm to work. pls help thx and srry for my eng if its bad
  6. I need the ProcessWaitClose command but i read that it need the psapi.dll file.What should i do with the psapi.dll, what comms to use to get the ProcessWaitclose comm to work? thx srry for my eng
  7. And another question: How can i add multiple text lines to an textslash Ex: this is a splash This window is called splash Bla bla bla blabla
  8. I have a problem with a splsh text.I call an vbs script that defrag the hdd and I want the splash to stay until the script finishes.I tried this but it doesn work:
  9. Thx a lot, that worked. Doohoodogg
  10. I tried that but it didn work That batch call another one and that batch i wanna hide.Its like Jonny (with the commad supplied by u guys) calls Jeremy and Jeremy doesnt want to hide. I really dont know how to explain that very good. sryy for my eng Doohoodogg
  11. Hy...i'm calling a batch script that defragments the hdd trough the command: RunWait(@ComSpec & " /c " & 'start data\Def.vbs', "", @SW_HIDE) the prblem is that i tried to hide the window that appear when the batch starts defrgamenting the hdd but its not working (the name of the window is 'C:\Windows\system32\Defrag.exe", its not working with any commands like WinSetState or others, i even tried to put into the title of window "classname=WindowsCommandsConsole" (i saw that in Window Info) but its not working. Anyone know why Pls help thx Srry for my eng if its bad Doohoodogg
  12. Thx a lot
  13. I want that a tooltip to be displayed when i pass with the mouse cursor over the Gui buttons, like usually software have. Can someone post an example of a gui with one button and a tooltip that show up when u put the mouse cursor over the button and dissapear if u move the cursor away. thx Doohoodogg
  14. Can someone post the an example of script that read the " found this files.txt" that is created with dir and delete the files that are listed in the "found this files.txt" because i'm a little confuse! Thx Doohoodogg Anyway, thx all f helping a n00b like me.
  15. ive changed dir to del and it didnt work
  16. U mean like this RunWait(@comspec & ' /c dir "c:\*blablabla*.*" /b/oN/s > "c:\I found this files.txt"') That didnt work
  17. Thanx man!! It seems that i improoved my eng just by posting on forums and chatting. Weird isn'it? Anyway thanx
  18. Man....i was so stupid, that was another vbs script. The real script that i want is this: Dim Act, Fso, strDrv, Drvs Set Act = CreateObject("Wscript.shell") Set Fso = CreateObject("Scripting.FileSystemObject") Drvs = Array("C:\","D:\","E:\","F:\","G:\","H:\","I:\","J:\","K:\","L:\","M:\","N:\","O:\","P:\",_ "Q:\","R:\","S:\","T:\","U:\","V:\","W:\","X:\","Y:\","Z:\") For Each strDrv In Drvs If Fso.DriveExists(strDrv) Then Act.Run("Defrag " & strDrv & " -F"),1,true End If Next
  19. Jessus Christ, i was so dumb, that was another script, i inverted the names from a mistake, heres the defrag script: Dim Act, Fso, strDrv, Drvs Set Act = CreateObject("Wscript.shell") Set Fso = CreateObject("Scripting.FileSystemObject") Drvs = Array("C:\","D:\","E:\","F:\","G:\","H:\","I:\","J:\","K:\","L:\","M:\","N:\","O:\","P:\",_ "Q:\","R:\","S:\","T:\","U:\","V:\","W:\","X:\","Y:\","Z:\") For Each strDrv In Drvs If Fso.DriveExists(strDrv) Then Act.Run("Defrag " & strDrv & " -F"),1,true End If Next
  20. Thanx a lot
  21. Heres is the dfrag.vbs Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run ("%systemdrive%\INSTALL\CD\A120\setup.msi /qn REBOOT=REALLYSUPPRESS") WScript.Sleep 12000 WshShell.SendKeys "{TAB}" WScript.Sleep 1000 WshShell.SendKeys "{ENTER}" WScript.Sleep 9000 WshShell.SendKeys "{ENTER}" WScript.Quit
  22. I dont know if this is the right place but if not the please excuse me. i needed the above example to create a gui that has 2 buttons, defrag now and exit. The defrag button is used to call a vbs script that defrag all my drives, but it gives me an errror like "Cannot execute external program" or something like that.Is there any add-on or something like that to allow runing other types of scripts/files? Thanx. Srry for my eng and if this is not the right place to ask this!
  23. Yes, its working now. thanx!
  24. I am disperate ! I want to make a script that finds and deletes all the files/folders that contains a specified keyword(the keyword I want) Exemple: I want the script to do this: -Searches my computer for the files that contain (lets say. 123 ) in their name and then deletes them. Help plss. srry for my eng Doohoodogg
  25. Ive made an gui that by pressing a button run a batch file that clean some files on my hdd. The problem is that the: WinSetState ( "C:\Windows\system32\cmd.exe", "", @SW_MINIMIZE ) it doesnt work.Thats the name of the window.So is there any way to hide or minimize that console window? Srry for my eng
×
×
  • Create New...