• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

Bath script help

ilmickeyli

[H]ard|Gawd
Joined
Aug 25, 2001
Messages
1,166
Hi guys,

I need to create a batch script that copies to all users in c:\users to their c:\username\appdata\local\nameofsoftware\ folder

It's a xml file that needs to be copied to a few hundred profiles on the machine and I am not good enough at this.. I googled a few scripts but just am struggling

any help would be much appreciated!

Thanks
 
I would recommend having any script you plan on taking in the bath laminated
 
@echo off
echo Bath Script © 2014
if balls = dirty goto scrub
goto end
:scrub
echo scrubbing balls
:end
 
But seriously, place the file somewhere on the c: drive, like c:\installs\somerandom.xml

Make a bat file with this:

copy "c:\installs\somerandom.xml" "c:\%username%\appdata\local\nameofsoftware\ folder"

Place a copy of that bat file in "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup"
 
Thanks! that would work too. Didn't think about through startup. it is a citrix environment so I don't know if that would still run.

is there another way to script it to just copy upon me initiating it instead?
 
Back
Top