Batch file help needed....
#1
Scooby Regular
Thread Starter
Join Date: Aug 2001
Location: wakefield
Posts: 2,082
Likes: 0
Received 0 Likes
on
0 Posts
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
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
#2
Scooby Regular
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
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
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
#3
Scooby Regular
Thread Starter
Join Date: Aug 2001
Location: wakefield
Posts: 2,082
Likes: 0
Received 0 Likes
on
0 Posts
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]
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]
Thread
Thread Starter
Forum
Replies
Last Post