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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. boostadaroosta

    how do i use vbscript to write a basic script like in bash for linux

    You are correct. The shells are different. However, for the question you originally posted... ["I want to run a script that just tells the command prompt to execute the dos command "dir" or "cd" etc."] ...the differences should not matter. The shell script I gave contains a series of basic...
  2. boostadaroosta

    how do i use vbscript to write a basic script like in bash for linux

    No. The shell script above will work on any Windows or DOS based system. The pathing may differ, but you can get around that using environment variables instead of direct paths. For example, I could have said "cd %WINDIR%\System32" instead of "cd WINDOWS\System32" This would take you to the...
  3. boostadaroosta

    how do i use vbscript to write a basic script like in bash for linux

    Unless you have a specific reason to use VBScript, this is a very easy thing to do with Windows Shell Scripting. Create a text file named ls.cmd. Edit it and add the following text: #Start Script @ECHO OFF cd \ cd WINDOWS\System32 dir pause #End Script Save the file and run it. It will do a...
  4. boostadaroosta

    Script to RESTART a service on a remote computer?

    This script may help. It uses WMI but this should not be a problem on Win2k or newer machines. '/////////////////////////////////////////////////////// '/////////// User Defined Values ////////////////// '/////////////////////////////////////////////////////// 'Change this value to the name of...

Part and Inventory Search

Back
Top