Jump to content

Yzöwl

Patron
  • Posts

    4,113
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

Everything posted by Yzöwl

  1. The following are the 'exit codes' for Xcopy: Your problem is therefore not with the errorlevel returned it is with your script. There are better ways of checking for a valid drive etc. if you use an if exist statement or check for the drive first then you'd be more certain that the errorlevel of 4 referred to a lack of disk space or memory.Also remember that for example if errorlevel 2 means if the errorlevel is 2 or greater, so if you wish to check against specific levels then either check them in reverse: If Errorlevel 5 Goto DiskWrite If Errorlevel 4 Goto NotEnough If Errorlevel 2 Goto Abort If Errorlevel 1 Goto NoSourceor use If %errorlevel% [GEQ|GTR|LSS|LEQ|EQU|NEQ] [0|1|2|3|4|5] Goto […]
  2. On behalf of all our membership please allow me to welcome you to the MSFN Forums. I hope you enjoy being part of something special!
  3. On behalf of all our membership please allow me to welcome you to the MSFN Forums. I hope you enjoy being part of something special!
  4. On behalf of all our membership please allow me to welcome you to the MSFN Forums. Nothing bad I hope!!!
  5. On behalf of all our membership please allow me to welcome you to the MSFN Forums. I hope you enjoy being part of something special!
  6. On behalf of all our membership please allow me to welcome you to the MSFN Forums. I hope you enjoy being part of something special!
  7. On behalf of all our membership please allow me to welcome you to the MSFN Forums. I hope you enjoy being part of something special!
  8. Yzöwl

    Hello

    On behalf of all our membership please allow me to welcome you to the MSFN Forums. I hope you enjoy being part of something special!
  9. On behalf of all our membership please allow me to welcome you to the MSFN Forums. I hope you enjoy being part of something special!
  10. Yzöwl

    New Here

    On behalf of all our membership please allow me to welcome you to the MSFN Forums. I hope you enjoy being part of something special!
  11. On behalf of all our membership please allow me to welcome you to the MSFN Forums. I hope you enjoy being part of something special!
  12. Yzöwl

    hi!

    On behalf of all our membership please allow me to welcome you to the MSFN Forums. I hope you enjoy being part of something special!
  13. On behalf of all our bright members please allow me to welcome you to the MSFN Forums. On behalf of the others,
  14. On behalf of all our membership please allow me to welcome you to the MSFN Forums. I hope you enjoy being part of something special!
  15. On behalf of all our membership please allow me to welcome you to the MSFN Forums. I hope you enjoy being part of something special!
  16. On behalf of all our membership please allow me to welcome you to the MSFN Forums. I hope you enjoy being part of something special!
  17. or HKLM\SOFTWARE\Classes\mailto\shell\open\command\ It's probably my fault, I possibly only have the CU keys because I used a freeware utility to set them on an individual basis due to my fascination with uncommon applications!
  18. The only logical method I can think of is to manipulate the result of: Set oShell = CreateObject("WScript.Shell") Set oFSO = CreateObject("Scripting.FileSystemObject") sRegValue = "HKCU\Software\Classes\mailto\shell\open\command\" RegRead = oShell.RegRead(sRegValue) WScript.Echo RegReadI say manipulate because I don't know if the result will always use quotes, always have switches or always use one or more parameters.
  19. Well the easiest way to explain it is that svchost.exe is a generic host process, it is like a container for many other processes to work under. Many processes use this and malware is just one possibile process to take advantage of this host. If you use XP Pro then try OK'ing the following in a 'Start => Run box'. %comspec% /k tasklist /svc /fi "imagename eq svchost.exe"The resultant list will tell you the names of the services using the host under their pertinent process Ids. It is therefore possible to look up in a search engine any processes in the list to find out if it is suspect, and also close down the particular instance of svchost if required.
  20. Take a look at these results! and please use quote or code tags…
  21. I would suggest you prevent C:\Setup.exe from running at startup. It is shown in your log under Do a web search on it, you may like I suspect, find out that it is malware! I'm also moving this topic to the Malware Forum where these files are better placed.
  22. My Documents will always be located at "%userprofile%\My Documents" until you move it elsewhere. I think what you are trying to ask for is to perform a search of a non-%systemdrive% non-removable disks for the Directory which was previously your My Documents location and re-assign appropriately. The biggest problems here would be that the directory before assigning it will be named %UserName%s Documents, not My Documents and if there were more than one user previously there may be several directories similar in nature. The easiest method of performing this for an English based OS is to search for a directory name ending in 'Documents' once you've located one do a search for its desktop.ini file and then verify that the line beginning 'owner=' matches the name of the user. Once you've done that write that location to the 'user shell folders' registry key.
  23. I have made a few changes to your script which I hope may help you a little. They are really methods of making sure that incorrect or inappropriate answers are not given to your questions or that the script isn't mistreated in running. You very likely will not understand it all but with a little research and possibly a few questions you should quickly improve your script thought processes. @Echo off Setlocal Title Click on this QUIZ Color f0 Mode 72,12 Echo WELCOME! Echo We, the programmers of the famous "Click on this" have Echo created a questionaire to see what YOU the user wants! Echo Yes! That's right! YOU! YOU! YOU! Echo It's quite simple. And maybe fun? Echo All you need to do is answer 2 questions with a 1,2,3,or 4. Echo Ready?! Echo Lets go! Pause :A Cls Set "aar=" Echo Question A. Echo What would you like to see in the next "Click on this"? Echo 1. More interactive features Echo 2. I DON'T WANT TO SEE ANY MORE! IT SUCKS! (?) Echo 3. More humor (Is it possible?) Echo 4. More interesting features Set /p "aar= Please choose 1,2,3, or 4. " If Not Defined aar Goto A If %aar% Geq 1 (If %aar% Leq 4 ( Cls Echo You chose option '%aar%' Pause Goto B)) Goto A :B Cls Set "bar=" Echo Question B. Echo What don't you like about "Click on this"? Echo 1. The stupid typing (I personaly hate it.) Echo 2. The non-interactiveness (is that a word?) Echo 3. The difficulty of use? Echo 4. The people who made it.... Set /p "bar= Please choose 1,2,3, or 4. " If Not Defined bar Goto B If %bar% Geq 1 (If %bar% Leq 4 ( Cls Echo You chose option '%bar%' Pause Goto Next)) Goto B :Next Cls Set "var=" Echo Thank you for taking this quiz. Echo It will surely aid in the "Click on this v2.0" decision making process. Echo.. Echo... Echo.... Echo..... Echo.... Echo... Echo.. Echo Just one more question. Set /p "var= Do you wish to answer it? [Yes|No]: " If Not Defined var Goto Next If /i %var% Equ Yes Goto C Goto End :C Cls Set "car=" Echo Question C. Set /p "car= Was this quiz easy to use? [Yes|No]: " If Not Defined car Goto C If /i %car:~0,1% Neq Y ( If /i %car:~0,1% Equ N (Echo Sorry to here that!) Else (Goto C) ) Else (Echo Glad to here it!) Ping -n 4 127.0.0.1>Nul :End Cls Echo Thank you for taking this quiz. Echo Press any key to exit. Pause>Nul PS Please use the edit facility to append to your previous post if nobody else has replied since posting it and try to use code tags too!
  24. Could you try to explain a little better please, perhaps with an example folder and file structure and an expected end result!
  25. Take a look here as linked from and used in conjunction with this It clearly states here, It would be fair to assume by this that it would be unlikely that one would conflict with the other.
×
×
  • Create New...