84Views6Replies

Author Options:

Startup file to copy a picture Answered

I have a school tablet that was forced upon us by my school. The IT department at my school insists that the computers stay 'uniform' by having the same background for desktop and log on etc. As the mischief making students that we are, we quickly tracked down the destination file and replaced the image with one of our own. But the IT found a way to stop this by changing the file back every few times we boot. So I was wondering if I could get some help with the coding for copying a file on boot.
All help is appreciated. 

Discussions

0
None
NachoMahma

7 years ago

. I Googled "DOS batch copy" and got some good hits.
. Put your batch file in your Startup folder - %USERPROFILE%\Start Menu\Programs\Startup (where %USERPROFILE% is the username of the logged on user).

0
None
2685866NachoMahma

Reply 7 years ago

All I want to do is copy and replace it from C:\Windows\Web\Wallpaper\Pics\student.jpg to C:\Windows\Web\Wallpaper\student.jpg
All of the turorials on the web are for more complicated things like copying with the date or to a cd drive or usb. I just want a simple file to copy a picture out of its folder into the folders, folder

0
None
NachoMahma2685866

Reply 7 years ago

.  The first hit I get with the search above is "bare bones" - no date or any other parameters, just paths. Or ignore all the params (except paths) in other examples - they are optional in most cases.
.  A drive is a drive is a drive - DOS doesn't particularly care what kind of disk/disc it is (as long as the destination is writable, for your project).
.  It doesn't get much more simple than the first hit above. The source path is where your file is located. The destination path is where you want to copy it to. You may have to set a flag to over-write a file without getting an are-you-sure prompt.
.
.  If you are getting an access denied error, then I doubt if a batch file is going to solve your problem.

0
None
2685866NachoMahma

Reply 7 years ago

Yes but I get an access denied message

0
None
lemonie

7 years ago


OK, what is this file, where is it located, what permissions are set on it, and when in the boot sequence does the (IT found a way)-process refresh the file?

L

0
None
2685866lemonie

Reply 7 years ago

C: Windows\Web\Student.jpg