Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming

Reply
 
LinkBack Thread Tools
Old 01-23-07   #1 (permalink)
Security Sleuth
 
kc-tr's Avatar
 
intel nvidia

Join Date: Nov 2006
Location: root@big-brother:/$
Posts: 1,849

Rep: 119 kc-tr is acknowledged by manykc-tr is acknowledged by many
Unique Rep: 96
Hardware Reviews: 1
Trader Rating: 8
Default Close Command prompt after execution

Im working on getting a "shortcut" to work, but to launch the app, other than going directly to it, which kinda defeats the purpose, I have to launch it via command prompt in a shortcut. Example code that I am using...

%windir%\system32\cmd.exe /k xxx.exe

However this does work, the command prompt does not close after it launches what I need it to. Anyone know if an additional argument that I can add to this to launch the app, then close the command prompt?
__________________
IRC nick - tgalyean / normally found in #fedora-admin

System: █۩█
CPU
E6400 @ 3.4GHz
Motherboard
DFI INFINITY P965-S
Memory
2GB G.Skill HZ
Graphics Card
XFX 7900GS 659MHz/2000MHz
Hard Drive
Raptor 74GB
Sound Card
X-FI
Power Supply
600Watt Modular w/120mm Fan
Case
Cooler Master Centerion
CPU cooling
Stock
GPU cooling
Zalman Fatal1ty FC-ZV9
OS
XP Pro x64
Monitor
Acer AL17
kc-tr is offline kc-tr's Gallery   Reply With Quote
Old 01-23-07   #2 (permalink)
<= Humanaut
 
FrankenPC's Avatar
 
intel nvidia

Join Date: Jun 2006
Location: Bay Area
Posts: 5,548

Rep: 372 FrankenPC is a proven memberFrankenPC is a proven memberFrankenPC is a proven memberFrankenPC is a proven member
Unique Rep: 243
FAQs Submitted: 1
Trader Rating: 4
Default

cmd /c should close it
__________________
Previous Member of Team Owners - 1st to hit 200k and 250K

Previous member of Rough Riders - 1st to hit 300k!!!

Adios everyone! I've been proud to be a member of Owners and Riders.

System: TITAN-2
CPU
Q6600 G0 @ 3.4GHZ
Motherboard
ASUS P5K-E
Memory
4GB GSkill DDR2-1000 CAS5
Graphics Card
BFG 8800GT OC
Hard Drive
340GB Raptor SATA II
Sound Card
SB X-FI
Power Supply
SilverStone 750W 4-rail
Case
Lian Li Mid-tower
CPU cooling
OCZ Vindicator
GPU cooling
Stock
OS
Vista Home Premium 32bit
Monitor
Sceptre 24" LCD
FrankenPC is offline Overclocked Account   Reply With Quote
Old 01-23-07   #3 (permalink)
Security Sleuth
 
kc-tr's Avatar
 
intel nvidia

Join Date: Nov 2006
Location: root@big-brother:/$
Posts: 1,849

Rep: 119 kc-tr is acknowledged by manykc-tr is acknowledged by many
Unique Rep: 96
Hardware Reviews: 1
Trader Rating: 8
Default

Ok, I tried it 3 different ways. first was...

Quote:
%windir%\system32\cmd.exe /k xxx.exe /c
Which didnt really do anything other than the same that it was.

Then I tried

Quote:
%windir%\system32\cmd.exe /k /c xxx.exe
Which gave me

Quote:
'/c' is not recognized as an internal or external command,
operable program or batch file.
Then.. lol
Quote:
%windir%\system32\cmd.exe /c /k xxx.exe
Which did close it, however did not launch the app.
__________________
IRC nick - tgalyean / normally found in #fedora-admin

System: █۩█
CPU
E6400 @ 3.4GHz
Motherboard
DFI INFINITY P965-S
Memory
2GB G.Skill HZ
Graphics Card
XFX 7900GS 659MHz/2000MHz
Hard Drive
Raptor 74GB
Sound Card
X-FI
Power Supply
600Watt Modular w/120mm Fan
Case
Cooler Master Centerion
CPU cooling
Stock
GPU cooling
Zalman Fatal1ty FC-ZV9
OS
XP Pro x64
Monitor
Acer AL17

Last edited by kc-tr : 01-23-07 at 05:26 PM.
kc-tr is offline kc-tr's Gallery   Reply With Quote
Old 01-23-07   #4 (permalink)
My FSBs R better than URS
 
PROBN4LYFE's Avatar
 
amd nvidia

Join Date: Feb 2005
Location: Between 95 and 29...
Posts: 8,644

Rep: 551 PROBN4LYFE is becoming famousPROBN4LYFE is becoming famousPROBN4LYFE is becoming famousPROBN4LYFE is becoming famousPROBN4LYFE is becoming famousPROBN4LYFE is becoming famous
Unique Rep: 322
FAQs Submitted: 9
Hardware Reviews: 4
Trader Rating: 0
Default

Quote:
Originally Posted by FrankenPC View Post
cmd /c should close it
Spoken from a tech...
__________________
Quote:
I refuse to sig...what I do and post should be enough for most of you to know I'm for real or know I'm just joking...LOL

System: Spawn of a lost socket
CPU
X2 3800 2905mghz
Motherboard
DFI Lanparty Expert(modded BIOS)
Memory
(2x512) G SKILL DDR400@DDR483.4
Graphics Card
SLi Zotac 8600 GTs (680/850)
Hard Drive
2x320GB Seagate Barracuda Raid0
Sound Card
Karajan
Power Supply
600W PowMax (Revived wire mod)
Case
Case...whats that?!...lol
CPU cooling
Zalman AM2 9500
GPU cooling
Stock w/120mm on the back
OS
XP PROBN SP-P/Sabayon 3.3 RC3
Monitor
Dual Samsung 24"z
PROBN4LYFE is offline Overclocked Account PROBN4LYFE's Gallery   Reply With Quote
Old 01-23-07   #5 (permalink)
Security Sleuth
 
kc-tr's Avatar
 
intel nvidia

Join Date: Nov 2006
Location: root@big-brother:/$
Posts: 1,849

Rep: 119 kc-tr is acknowledged by manykc-tr is acknowledged by many
Unique Rep: 96
Hardware Reviews: 1
Trader Rating: 8
Default

Oh wait, I know what I did wrong, I figured it out. I had to remove the /k in it.

Like this
Quote:
%windir%\system32\cmd.exe /c xxx.exe
Thanks!
__________________
IRC nick - tgalyean / normally found in #fedora-admin

System: █۩█
CPU
E6400 @ 3.4GHz
Motherboard
DFI INFINITY P965-S
Memory
2GB G.Skill HZ
Graphics Card
XFX 7900GS 659MHz/2000MHz
Hard Drive
Raptor 74GB
Sound Card
X-FI
Power Supply
600Watt Modular w/120mm Fan
Case
Cooler Master Centerion
CPU cooling
Stock
GPU cooling
Zalman Fatal1ty FC-ZV9
OS
XP Pro x64
Monitor
Acer AL17
kc-tr is offline kc-tr's Gallery   Reply With Quote
Old 01-23-07   #6 (permalink)
<= Humanaut
 
FrankenPC's Avatar
 
intel nvidia

Join Date: Jun 2006
Location: Bay Area
Posts: 5,548

Rep: 372 FrankenPC is a proven memberFrankenPC is a proven memberFrankenPC is a proven memberFrankenPC is a proven member
Unique Rep: 243
FAQs Submitted: 1
Trader Rating: 4
Default

Quote:
Originally Posted by PROBN4LYFE View Post
Spoken from a tech...
I miss the command prompt
__________________
Previous Member of Team Owners - 1st to hit 200k and 250K

Previous member of Rough Riders - 1st to hit 300k!!!

Adios everyone! I've been proud to be a member of Owners and Riders.

System: TITAN-2
CPU
Q6600 G0 @ 3.4GHZ
Motherboard
ASUS P5K-E
Memory
4GB GSkill DDR2-1000 CAS5
Graphics Card
BFG 8800GT OC
Hard Drive
340GB Raptor SATA II
Sound Card
SB X-FI
Power Supply
SilverStone 750W 4-rail
Case
Lian Li Mid-tower
CPU cooling
OCZ Vindicator
GPU cooling
Stock
OS
Vista Home Premium 32bit
Monitor
Sceptre 24" LCD
FrankenPC is offline Overclocked Account   Reply With Quote
Old 01-23-07   #7 (permalink)
New to Overclock.net
 
Easty's Avatar
 
intel nvidia

Join Date: Jan 2007
Posts: 713

Rep: 51 Easty is acknowledged by some
Unique Rep: 44
Trader Rating: 0
Default

Quote:
Originally Posted by FrankenPC View Post
I miss the command prompt
Same here, but I did struggle some time's with using unix a lot also.

"ls" .. ls is not recognised.... *** .... Oh, Doh..
__________________
website Fragtastic!


An Englishman in Ft Worth Montreal
All my photo's

System: Game/Photo System
CPU
Quad 66 @ 3.4
Motherboard
EVGA 650I A2
Memory
4GB 800 Wintek
Graphics Card
2x Evga 8800 GTX WQXGA
Hard Drive
Twin WD Raptor 74GB raid 0, twin maxtor.5kgb raid1
Sound Card
Montego DDL(Aureal 64 drv)
Power Supply
Therm 700 tough
CPU cooling
Swi-tech GTX
GPU cooling
Swi-tek MCW60
OS
Vista 64
Monitor
Dell 30" 3007WFP-HC WQXGA
Easty is offline   Reply With Quote
Old 01-23-07   #8 (permalink)
..the party can start now
 
Sideburns's Avatar
 
amd nvidia

Join Date: Jun 2005
Location: Windsor, Ontario
Posts: 8,143

Rep: 577 Sideburns is becoming famousSideburns is becoming famousSideburns is becoming famousSideburns is becoming famousSideburns is becoming famousSideburns is becoming famous
Unique Rep: 356
FAQs Submitted: 1
Trader Rating: 6
Default

Quote:
Originally Posted by Easty View Post
Same here, but I did struggle some time's with using unix a lot also.

"ls" .. ls is not recognised.... *** .... Oh, Doh..
I hate the linux console sometimes...

It's so picky!
__________________
System: Desktop
CPU
Opteron 165 CCBWE0550UPMW
Motherboard
Asus A8N32-SLI Deluxe
Memory
2 x 512 Geil ONE TCCD
Graphics Card
Geforce 7900GT
Hard Drive
2 x 250GB DM10 (RAID-0)
Sound Card
SB Audigy 2 ZS
Power Supply
Seasonic S12-600HT
Case
Chieftec Dragon /w Window
CPU cooling
Thermaltake BigTyphoon
GPU cooling
Zalman VF900CU
OS
Windows XP Home SP2
Monitor
Dell 2007wfp 20.1" w/s
Sideburns is offline Overclocked Account   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 01:29 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.31485 seconds with 8 queries