The Corsair Support Forums  

Go Back   The Corsair Support Forums > Software Related (Non Corsair Questions) > Windows Server Systems


Important Links
Great Threads
Forum Rules
FAQs
Edit System Specs
How to run Memtest86+
How to read CPU-Z
Memory Finder
PSU Finder
Download Links
Memtest86+ v4.00
CPU-Z v1.52
HDBENCH v3.40 b6
Super Pi
TrueCrypt
Legacy USB Software
Enthusiasts
DDR1 IC Inquiry
DDR2 IC Inquiry
DDR3 IC Inquiry
Where to Buy
Retailers
Distributors
Online Store
Request an RMA
Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-24-2005, 12:51 PM
Wired's Avatar
Wired Wired is offline
Administrator
Wired's PC Specs
 
Join Date: Aug 2000
Location: Orlando, Florida
Posts: 23,312
POST ID # = 219586
Send a message via AIM to Wired
Default BAT file help

I'd like to create a BAT file that does the following:

1) Figures out which DC the PC is on.
2) Navigates to a folder and attempts to run a file. If it isn't found, navigate to a 2nd folder and runs a file there.

Any suggestions?
__________________
No, I don't work for Corsair!

Forum Rules
Admin of this forum / webdesignforums.net / Petri's IT Forum
Founder/Creator/Admin of ZE SECRET PROJECT (Coming Soon)
Reply With Quote
  #2  
Old 10-25-2005, 09:33 AM
Absorbine_Sr's Avatar
Absorbine_Sr Absorbine_Sr is offline
Headphone Geek
Absorbine_Sr's PC Specs
 
Join Date: Aug 2000
Location: Hell... no, wait, it's Indiana... um, well, nevermind.
Posts: 124
POST ID # = 219803
Default

For 1), can you use the LOGONSERVER environment value? At a command prompt type set and see if that variable is there, and if so if it corresponds to the DC you expect it to.

A_Sr
__________________
A proud smartass since 1958.
Reply With Quote
  #3  
Old 10-25-2005, 10:09 AM
Wired's Avatar
Wired Wired is offline
Administrator
Wired's PC Specs
 
Join Date: Aug 2000
Location: Orlando, Florida
Posts: 23,312
POST ID # = 219807
Send a message via AIM to Wired
Default

yay, that worked!

For 2) I guess I can just attempt to run it, and if no go, nothing happens :)
__________________
No, I don't work for Corsair!

Forum Rules
Admin of this forum / webdesignforums.net / Petri's IT Forum
Founder/Creator/Admin of ZE SECRET PROJECT (Coming Soon)
Reply With Quote
  #4  
Old 10-25-2005, 10:35 AM
Absorbine_Sr's Avatar
Absorbine_Sr Absorbine_Sr is offline
Headphone Geek
Absorbine_Sr's PC Specs
 
Join Date: Aug 2000
Location: Hell... no, wait, it's Indiana... um, well, nevermind.
Posts: 124
POST ID # = 219812
Default

Read up on If/Then statements in batch files. You should be able to do a IF XXX.exe file exists THEN execute it. IF xxx.exe file does not exist THEN go to location 2 and run YYY.exe.

Its been a long time but something should exist out there to help you through this.

A_Sr.
__________________
A proud smartass since 1958.
Reply With Quote
  #5  
Old 10-25-2005, 11:12 AM
Wired's Avatar
Wired Wired is offline
Administrator
Wired's PC Specs
 
Join Date: Aug 2000
Location: Orlando, Florida
Posts: 23,312
POST ID # = 219815
Send a message via AIM to Wired
Default

Found out we use some crazy super version of BAT files, so it's all good :)
__________________
No, I don't work for Corsair!

Forum Rules
Admin of this forum / webdesignforums.net / Petri's IT Forum
Founder/Creator/Admin of ZE SECRET PROJECT (Coming Soon)
Reply With Quote
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 06:21 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.