Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   Dev Hardware ForumsSOFTWAREProgramming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Hardware Forums Sponsor:
  Trader Rating: 0 · #1  
Old March 8th, 2008, 07:16 PM
violagirl23 violagirl23 is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 1 violagirl23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 10 sec
Reputation Power: 0
[Batch File] Execute program without actually opening up command prompt?

I am a newbie to batch files I guess, but somewhat knowledgeable about Unix shell scripting. I used to make executable shell scripts in bash a lot to do simple commands exactly the way I wanted, but of course, they would not actually open a terminal unless I told them to. It was a good way to run a program a certain way easily. Is there any way to do this on Windows? I want a file I can click on and it will open one program and then open another. But I just want the programs to open, not the command prompt to pop up as well. Is there any way to do this?
This is what I wish to do (it has been placed in the correct relative directory):
Quote:
Xming\Xming.exe :0 -clipboard -multiwindow
PuTTYPortable\PuTTYPortable.exe

Right now it runs, but it also pops up the command prompt, which is the part I do not want. How could I accomplish this?

Reply With Quote
  Trader Rating: 0 · #2  
Old March 9th, 2008, 06:14 PM
tjb's Avatar
tjb tjb is offline
Contributing User
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Apr 2006
Location: Oregon
Posts: 259 tjb User rank is First Lieutenant (10000 - 20000 Reputation Level)tjb User rank is First Lieutenant (10000 - 20000 Reputation Level)tjb User rank is First Lieutenant (10000 - 20000 Reputation Level)tjb User rank is First Lieutenant (10000 - 20000 Reputation Level)tjb User rank is First Lieutenant (10000 - 20000 Reputation Level)tjb User rank is First Lieutenant (10000 - 20000 Reputation Level)tjb User rank is First Lieutenant (10000 - 20000 Reputation Level)tjb User rank is First Lieutenant (10000 - 20000 Reputation Level)  Folding Points: 14969 Folding Title: Novice Folder
Time spent in forums: 6 Days 19 h 49 m 45 sec
Reputation Power: 122
Send a message via XFire to tjb
Quote:
Originally Posted by violagirl23
I am a newbie to batch files I guess, but somewhat knowledgeable about Unix shell scripting. I used to make executable shell scripts in bash a lot to do simple commands exactly the way I wanted, but of course, they would not actually open a terminal unless I told them to. It was a good way to run a program a certain way easily. Is there any way to do this on Windows? I want a file I can click on and it will open one program and then open another. But I just want the programs to open, not the command prompt to pop up as well. Is there any way to do this?
This is what I wish to do (it has been placed in the correct relative directory):

Right now it runs, but it also pops up the command prompt, which is the part I do not want. How could I accomplish this?

Try this:
Code:
 
@echo off
Xming\Xming.exe :0 -clipboard -multiwindow
PuTTYPortable\PuTTYPortable.exe
__________________
FOLD TO CURE!!!!    

Xfire    

My Computer    

Reply With Quote
  Trader Rating: 0 · #3  
Old March 13th, 2008, 04:02 PM
omrsafetyo's Avatar
omrsafetyo omrsafetyo is offline
Contributing User
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Location: Maine, USA
Posts: 297 omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Days 21 h 32 m 32 sec
Reputation Power: 221
Send a message via AIM to omrsafetyo
This could be done quite easily with a VBscript
Code:
Dim WshShell

Set WshShell = WScript.CreateObject("WScript.Shell")

WshShell.Run "Notepad.exe", 1

Last edited by omrsafetyo : March 13th, 2008 at 04:04 PM.

Reply With Quote
Reply

Viewing: Dev Hardware ForumsSOFTWAREProgramming > [Batch File] Execute program without actually opening up command prompt?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT