• HEXUS
  • HEXUS.tv
  • channel
  • gaming
  • lifestyle
  • trust
  • community
  • ESReality
  • HEXUS.community discussion forumsVisit Corsair.com

    Welcome to the HEXUS.community discussion forums forums.

    You are currently viewing our boards as a guest which gives you limited access to view most discussions and other features. By joining our free community you will have access to post topics, respond to polls and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

    Go Back   HEXUS.community discussion forums > HEXUS.help - buying advice & technical queries > Operating systems & applications > Software and web development

    Software and web development Databases, graphics, programming, scripting and web development.

    Reply
     
    LinkBack Thread Tools
    Old 06-05-2005, 07:52 AM   #1 (permalink)
    'Sir' to you
     
    Join Date: Aug 2003
    Location: Witney - near Oxford
    Posts: 252
    Thanks: 0
    Thanked 0 Times in 0 Posts
    Script to compare number in text files?

    Need to create a logon script which will pull down some files from the server but dont' want it to happen every time.

    Ideally I'd like the logon script to look inside a txt or ini file on the local machine and see a number, then look at a txt or ini file on server, and cmpare values. If the number on server copy of file is bigger, do a then copy files type thing.

    So if client ini file has number 3 in it, and server ini file has 4 in it, then file will be copied down.

    Ideally something as a batch file or vbsript would be best.

    Anyone know how to do this? I normally only write batch files and don't know any commandts to compare values in files.
    robertirwin is offline   Reply With Quote
    Old 06-05-2005, 11:25 AM   #2 (permalink)
    Senior Member
     
    Join Date: Jan 2005
    Posts: 1,854
    Thanks: 2
    Thanked 3 Times in 3 Posts
    Bit beyond the scope of batch files, you're going to want a scripting language or programming language for this.

    CPU Temps: Forget MBM, if it don't crash it ain't too hot.
    Butcher is offline   Reply With Quote
    Old 06-05-2005, 11:46 AM   #3 (permalink)
    daft ideas inc.
     
    scottyman's Avatar
     
    Join Date: Jul 2003
    Location: Kiwi living in Upper Bucklebury
    Posts: 1,515
    Thanks: 1
    Thanked 1 Time in 1 Post
    View scottyman's Twitter Profile
    you'd have to use a scripting langauge and javascript.
    cookies would be better, then you can use your own flavour of scripting language. in fact - if you do use cookies, then load cookies into session variables, update then re-write the cookie. much less work, and fewer issues with the browser sandbox.

    scottyman is offline   Reply With Quote
    Old 06-05-2005, 01:16 PM   #4 (permalink)
    Pixel Abuser
     
    Spunkey's Avatar
     
    Join Date: Nov 2003
    Location: Milton Keynes
    Posts: 1,523
    Thanks: 0
    Thanked 0 Times in 0 Posts
    have a check up on how to use the FileScriptingObject from VBS. That'll be the kiddy you want. 10 lines of code maximum - i just can't remember the proper syntax off hand

    Spunkey is offline   Reply With Quote
    Old 08-05-2005, 10:08 AM   #5 (permalink)
    'Sir' to you
     
    Join Date: Aug 2003
    Location: Witney - near Oxford
    Posts: 252
    Thanks: 0
    Thanked 0 Times in 0 Posts
    Thanks guys. Cookies could be problematic given the file comparison is on a per machine basis rather than per user. Will check out filescripting object, though given lack of quick-fix might dig out my old perl book and try there too.
    robertirwin is offline   Reply With Quote
    Old 09-05-2005, 03:10 PM   #6 (permalink)
    Senior Member
     
    Join Date: Jan 2005
    Posts: 1,854
    Thanks: 2
    Thanked 3 Times in 3 Posts
    perl is ideally suited to that sort of thing, I'd get that book out.

    CPU Temps: Forget MBM, if it don't crash it ain't too hot.
    Butcher is offline   Reply With Quote
    Reply

    Breadcrumb
    Go Back   HEXUS.community discussion forums > HEXUS.help - buying advice & technical queries > Operating systems & applications > Software and web development


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

    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
    Trackbacks are On
    Pingbacks are On
    Refbacks are On


    Similar Threads
    Thread Thread Starter Forum Replies Last Post
    Nero vision express saying:'Burn process failed' johnnr892 Help - technical & advisory 15 11-12-2005 10:43 PM
    Nero or Burner ? Foxile Help - technical & advisory 30 04-04-2005 06:31 AM
    Catalyst 5.3 Available Now Steve Graphics cards and Monitors 16 15-03-2005 11:46 AM
    Passing variables, writing text files, etc daverobev Software and web development 17 03-12-2003 02:49 PM
    Anyone know how I can compare directories / files? joshwa Operating systems & applications 7 01-11-2003 10:44 AM



    All times are GMT. The time now is 05:26 AM.

    Any representations/statements made on the HEXUS.community discussion forums are the representations/statements of the author i.e. the person/organisation making them. If any such representations/statements are disputed they are a matter between the parties concerned.
    HEXUS Limited accepts no responsibility for any misrepresentations, inaccurate or false statements made by any person/organisation other than HEXUS Limited employees.
    For more information please read HEXUS Limited's terms, conditions and privacy policy.

    Hosted Exchange

    Powered by vBulletin® Version 3.8.4
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Content Relevant URLs by vBSEO 3.3.2
    © Copyright 2009 HEXUS® Limited. All rights reserved. Unauthorised reproduction strictly prohibited.