Jump to content

gunsmokingman

Super Moderator
  • Posts

    2,296
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Canada

Everything posted by gunsmokingman

  1. I just could not stop myself, so here my hybird version
  2. Try this for your line instead, if this is for a batch file then it will work. jdoe, you beat me for the post because this was what I was going to post also. So I will post the batch script that I tested on the line.
  3. So who died and made you god. Yet you choosed to reply what does that say about you.
  4. I have had the same problem so I wroye a script that will delete the file. All I do now is drag the file onto this script. Thread to read more Here is a link to a rar file with the above script. Drag_And_Drop_Delete
  5. I had started to check my email when I notice this from MS Thank You From the Windows Vista Beta Team!!!. I thought this was just the standard thank you for being in the Beta for Vista. When I Open it it said This was such a suprise I was expecting something like they gave out for Server 2003 a crappy Key Chain Radio thing, they gave out for that Beta.
  6. The top script was a demo in how to get the values from a text file back into the Script running. It creates a text file then it read it line by line then a message box appears for each line of the text file with it as a new varible. The second script should in theory connect to StrComputer which get it varible from the text file line Would this read the Test.txt file and apply the SchTask.vbs to all PCs in the Test.txt file? This will work only for 1 computer, it will fail if there is more then 1 computer because the loop will only hold 1 name. The 2 scripts I posted pass each line of the text file as a new varible each time it goes threw the loop, that can be used as the varible for the shutdown part. This is where I go to learn about VBS Scripts The Hey, Scripting Guy! Archive
  7. Try this I can not test to see if it works on network I have only tested it for run time errors. The Script I tested this return the contents of ComputerLists.txt This returned the contents of the text file in my test. Script that you can try.
  8. Try this to run it CleanMgr with out a dialog. cleanmgr /sagerun:99
  9. I guess you must of missed this it pays to read. I do not use batch much but here is one way of doing it with a VBS script. Since I can read and my reply to the original post was an alternative way of doing it what he wanted. What you post does not add 1:\ A simple yes you can use the Start /Wait or Start /w to start the app 2:\ It provides no example of any type of code and how to use it Example VBS Script With A Error Control Since your post does not offer any practical informatiom on what he wanted to do I wrote this for him. Example batch cmd with a Error Control Yes there isCmd Promt VBS Script The Number 0 means to start it hidden The Number 1 means to start it not hidden and full size The Number 2 means to start it and only show the dialog on the task bar True means wait for the app False means not to wait for the app
  10. I do not use batch much but here is one way of doing it with a VBS script. Here is another way using VBS scripts and a Array and a Loop
  11. This is Js Script that 1:\ Checks for the CD or DVD drive and this file i386\winnt32.exe 2:\ It then checks for this folder %SystemDrive%\XPCD If it not there then it makes that folder 3:\ It uses the copy dialog to copy the CD DVD to %SystemDrive%\XPCD 4:\ If the CD DVD does not have a XP source in it it start a loop that will wait for approx 1 minute, for the source if it reaches the default time out it quits. Sava As CopyXP.js
  12. This will only confirm if there is a text string in the clip board
  13. Thank you for the tip I made a SFX file with this version of iernonce.dll 6.00.2900.2180 (xpsp_sp2_rtm.040803-2158). I also added a another VBS script file that will test to see if the RunOnceEX works. You will not need to reboot or log off this will run automatically. Script that places the files Script that checks to see if the RunOnceEx Works Fix_IE1_R1.exe
  14. Here is a VBS Script that 1:\ Inputbox to set the Copy To Spot, if the Cancel Button is pressed or no text was detected it will produce a Message Box then quit. 2:\ Inputbox to set the Copy From Spot, if the Cancel Button is pressed or no text was detected it will produce a Message Box then quit. 3:\ It then checks to see if the folder for the Copy To Spot exists if the Folder does not exists then it makes the Folder for the Copy To Spot Save As ShellCopy.vbs
  15. I made a HTA that uses scripts to run the built in Defrag and CleanMgr.exe The Thread DiskInfoDefrag_V2.exe
  16. Thanks that a good tip.
  17. Try This Notes This is the If Exists Statement This is the Try and Catch Statement I made this HTA with the above scripts . It has a text box for user input of the File Name. It has this directory for the Folder = ("C:\\helpfiles\\"). Save As If_Try_Run_User_Input.hta
  18. Try the to make your own theme, I found the app fairly simple to use. I have made a couple of themes with it.
  19. I get 2 different results running the script on 2 different computers. On my AMD it reports every thing in the support button but on a older P3 the ini is made but the support button is not added. I do not know why this happens.
  20. I totally agree here. Heck, the first time I slipstreamed SP2 into XP, I didn't expect it to fit on a normal CDr. I wonder if XP would still fit in a CDr if I slipped ALL the patches into it and a the full install of IE7. My Cd source with SP2 updates and IE7 and apps sit at approx 693 MB
  21. You can install from the hard drive from a Windows Cmd to start a install from Windows using a hard drive as the source Example To get a full list of switches and there meanings open Cmd Promt and typePATH_TO_THE_I386_FOLDER\winnt32.exe /? You also could try some thing like this. Make you UA XPCD to 700 MB then have the rest of the apps install from a set location on your hard drive. You could add this to the top of the RunonceEx.cmd this will then set the hard drive letter. Code to add to RunOnceEx.cmd Example RunOnceEx.cmd with the above code added to set the source location. Notes The script looks for a folder called Apps on the local drives, this script does not need the drive letter as that is set when it finds the folder. It then passes that varible to here The varible then is passed to this Then it processed here
  22. This add information for the support button but does not add the image. Make Support info This is the Thread to read more about it.
  23. I am not sure as I have not used WPI and only provided the script as another way to set the drive letter. Here is a Cmd Promt script that will only check for the CD DVD drive 1:\ Makes a vbs script that checks only for the CD DVD drive 2:\ Outputs the CD DVD drive letter to a new cmd script 3:\ Then it calls the new cmd script and passes the CD DVD drive Letter back to the original script Note you will have to change this line to match the file it will be looking for with WPI Red text is the part you have to change please keep the quotations Save As Set_CDDVD_Drv.cmd
  24. The js script will only check for CD or DVD drives, I added the script to address this problem.
  25. i do not know if this will help but here is a js script that will return the drive letter using WMI. I have it set using the $OEM$ folder and the cmdlines.txt as the check, you will have to edit that to match what you need.
×
×
  • Create New...