![]() | ![]() |
|
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! |
| |||||||
| Software and web development Databases, graphics, programming, scripting and web development. |
![]() |
| | LinkBack | Thread Tools |
| | #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. |
| | |
| | #3 (permalink) |
| daft ideas inc. | 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. |
| | |
| | #4 (permalink) |
| Pixel Abuser 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 |
| | |
| | #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. |
| | |
![]() |
| Breadcrumb | ||||||
| ||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
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 |