Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by smithy1981

  1. smithy1981

    Save an edited Excel file with no user input

    Hi, I am trying to write to an excel file which i am having no problems doing, but when the program exits and closes the excel file, a prompt appears checking whether or not you wish to save the file. Is there a way of automatically saving the file without any user input.
  2. smithy1981

    Getting Default Gateway IP address

    Hi, I am trying to use vbscript to get the first two octets of the default gateway on a machine. I can get the machines IP address, but not the Default Gateway IP. Any suggestions? Thanks
  3. smithy1981

    Using " " in a command line

    Hi, i need to send a line to command prompt. I can do this fine but the line contains " " as part of the command. Obviously you cannot just type this in the script. Is there a shortcut \ special key that will allow this to be done. WshShell.Run("cmd /c ....."..."....") Hope this makes sense...
  4. smithy1981

    Using RunAs within a script

    Hi, is there a way of using RunAs within a VbScript. I want to use a cmd window but using a different accoutn to the one that the user is logged in as Thanks
  5. smithy1981

    Make a folder hidden

    Is there a way of setting a folders properties to Hidden using vbscript Thanks
  6. smithy1981

    MsgBox Maximum user input

    Is there a way of ensuring that a user does not input more than three characters into a MsgBox
  7. smithy1981

    Customise MsgBox buttons

    Is there a way of specifying custom buttons so they dont have to say "OK", "Cancel" etc. For example can you have one button that says "option 1" and one that says "option 2"
  8. smithy1981

    change local admin password

    Is there a way of changing the local admin password using a vbscript. I have had a look but cant find anything apart from changing passwords in AD. Thanks
  9. smithy1981

    read each line from a text file

    Hi, I want to use a do...while loop, that will read from a text file and use each line as the variable. IE. the text file has two lines: Test Test2 I want a variable to be set as the next line each time the loop passes and then stops when it reaches an empty line Not sure if i have made...
  10. smithy1981

    Start notepad on a remote computer

    Hi I want to start notepad on a remote computer using a vbscript. I have tried using PSExec but this just creates the process, the actual window is not visible. Is there another way to remotely start an application Thanks
  11. smithy1981

    Copy to System Folder in Win200 and XP

    Hi, I am trying to write a script that will copy files to the c:\windows or c:\winnt folder depending on the version of windows being used. Have tried using c:\%windir% but this just creates a folder called %windir%, is there a way of copying automatically to the correct folder or do you need to...
  12. smithy1981

    Controlling Remote Desktop

    I am trying to create a shortcut for a remote desktop session, which will start remote desktop to a specific machine and then fill in the login credentials (username/password) I have tried to do this using send Keystrokes but is not working. Any one have any suggestions Thanks...

Part and Inventory Search

Back
Top