Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Batch file help needed....

Thread Tools
 
Search this Thread
 
Old 16 September 2003, 01:29 PM
  #1  
shunty
Scooby Regular
Thread Starter
 
shunty's Avatar
 
Join Date: Aug 2001
Location: wakefield
Posts: 2,082
Likes: 0
Received 0 Likes on 0 Posts
Red face

as I am sh1te at them

I want to copy some files from a network share to local PC’s when a user logs on to the PC, a small batch file will be placed in the startup folder. However I only want this to happen when they are connected to the domain. Can anyone suggest anything ??

something that can read from set command maybe to determine if on domain ??
cheers

shunty
Old 16 September 2003, 04:33 PM
  #2  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Post

FFS..

I hate it when people do this..

Simple way is in the login script, that way if they connect to the domain then they run the script..

Mail me and Ill help you out..

If you do only want to copy from a server to local machine..

then check %logonserver%

something like IF NOT NULL..

Copy \\server\share\file c:\localpath

I also recommend using robocopy instead.

David
Old 17 September 2003, 09:06 AM
  #3  
shunty
Scooby Regular
Thread Starter
 
shunty's Avatar
 
Join Date: Aug 2001
Location: wakefield
Posts: 2,082
Likes: 0
Received 0 Likes on 0 Posts
Post

I want a seperate batch file, vb script etc that I can run seperatly & drop in the startup folder & if they are not part of the domain then it will run & copy files.
The copying bit's not the problem, it's the domain detection.
I thought someone would have already done something like this to be honest

david, can you post the commands for me ??

anyone else help if david's to busy or can't do it ??

shunty

[Edited by shunty - 9/17/2003 12:04:34 PM]
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
yabbadoo4
ScoobyNet General
11
30 September 2015 10:33 PM
Nick_Cat
Computer & Technology Related
2
26 September 2015 08:00 AM
Littleted
Computer & Technology Related
0
25 September 2015 08:44 AM
ALi-B
Computer & Technology Related
0
14 September 2015 07:49 AM
riiidaa
ScoobyNet General
1
12 September 2015 11:52 AM



Quick Reply: Batch file help needed....



All times are GMT +1. The time now is 11:47 PM.