SunQuest
           Other Programming Languages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreOther Programming Languages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old December 8th, 2006, 09:23 AM
displaced displaced is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 1 displaced User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 26 sec
Reputation Power: 0
Reg query cant pass correct argument

Im trying to create a utility to help maintain my render farm

i have a flash front end that writes a string of server names to the registry something like this

tjg-training1>tjg-cb>tjg-training2

then i have a batch file which retrieves the registry entry and uses it but its just not working how it should

the reg query will spit out this below.....

Code:
C:\Pstools>reg query hkey_current_user\so\test\haha

Listing of [so\test\\haha]

REG_SZ          VS      tjg-training1>tjg-cb>tjg-training2


then each server name should be passed along to the rest of the batch file.....

Code:
for /f "skip=2 tokens=2* delims=> " %%i in ('c:\pstools\reg query "HKEY_CURRENT_USER\SO\Test\HaHa"') do ( 
pskill.exe  \\%%j -u render -p manager server
pskill.exe  \\%%j -u render -p manager 3dsmax
psexec.exe  \\%%j -u render -p manager -s -i -d -low "C:\Program Files\Autodesk\backburner\server.exe")


can anyone see what the problem might be ???

thanks in advance

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreOther Programming Languages > Reg query cant pass correct argument


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 5 hosted by Hostway