Normal Topic Batch file for cross-network file copy? (Read 1709 times)
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Batch file for cross-network file copy?
Jul 31st, 2007 at 6:20pm
Print Post Print Post  
Any batch file experts here?

I'd like to create one that would copy Sesame.ini to a number of workstations on my network.  There are about 7 machines that all use identical sesame.ini files in their Start In directory (there would be more if all my user's monitors were the same size, as the only differences are the startup window height and width, someday, someday) and it would be nice if I could make a single edit to one of the files, say the one residing on the server, and then run a batch to copy it to each workstation.  But I'm unsure how to reference the target destinations.

My server is Miara-2000serve.  The edited file is in its C:\Sesame\Miara\sesame.ini, which each user workstation sees as F:\Sesame\Miara\sesame.ini

My users are all members of Windows' WORKGROUP.  As examples, some of the target computer names are:
Michellet
Stefanie
Jason
John
Miara-0kxrfudd2  <-- yeah, I have to change that, what a pain
ScottL
Jamiara

Anyhow, is what I'm thinking of possible to do, or is there a better way?  (Rhetorical question; I'm sure there's a better way, but it's a Monday for me and my brain isn't up to full speed yet.

TIA!
  

**
Captain Infinity
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Batch file for cross-network file copy?
Reply #1 - Jul 31st, 2007 at 7:35pm
Print Post Print Post  
UNC paths?
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Batch file for cross-network file copy?
Reply #2 - Jul 31st, 2007 at 7:42pm
Print Post Print Post  
Why not use the "-ini_file" startup option and have all the clients read the same sesame.ini file that resides on the server?
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Batch file for cross-network file copy?
Reply #3 - Aug 1st, 2007 at 12:12pm
Print Post Print Post  
Quote:
UNC paths?

I'm unfamiliar with that term.


Quote:
Why not use the "-ini_file" startup option and have all the clients read the same sesame.ini file that resides on the server?

See, I knew there was an easier way!  Thanks!  Does the -ini_file switch come before or after the -client switch?



(Yesterday I spent some time mapping all my User's Sesame directories to drives.  That's not needed now thanks to Mark's suggestion, but it may come in handy anyway.)
  

**
Captain Infinity
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Batch file for cross-network file copy?
Reply #4 - Aug 2nd, 2007 at 3:17am
Print Post Print Post  
For Infinity..... Huh

Hmmmm, I thought I sent you info on server ini and UNC in an offline email some days ago? 

Did you not receive? Shocked


« Last Edit: Aug 2nd, 2007 at 2:43pm by Bob_Hansen »  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Batch file for cross-network file copy?
Reply #5 - Aug 3rd, 2007 at 2:50pm
Print Post Print Post  
Yes Bob, got it, thanks.  But UNC went over my head then.  I'm looking at the article on Wikipedia now.

Mark's suggestion for specifying an .ini in the startup switch is working well; I have one .ini for my 800x600 users and one for my 1024x768 users.  They're pretty much identical except for the program window height and width specifications, and the sizes of the command tree area.

I also finally managed to set a static IP set for my server, so I no longer (at least, not so far) have the problem of the server client disconnecting when it changes.

See you tomorrow!
  

**
Captain Infinity
Back to top
IP Logged