Jump to content

Recommended Posts

Posted

hi there

 

we are playing with batch file where we copy a file to a location and then rename it

 

@echo off

rem to remove screen output updates ... less clutter

if exist "Z:\Profiles\Teaching\desktop.jpg" del "Z:\Profiles\Teaching\desktop.jpg" /S/Q

 

 

xcopy "Z:\Profiles\Backgrounds\SELECT - RANDOM.jpg" "Z:\Profiles\Teaching\" /E/I

 

 

 

REN Z:\Profiles\Teaching\*.jpg desktop.jpg

 

 

we can set a file manually, is it possible to make it a random selection for the JPG plz

 

Tar

 

 

feebs

Posted
Could you numerically name the files and then just incrament the number

e.g.

Monday = 1

Tuesdy = 2

and so on?

 

if we had 20 or more tho it would break it up

 

numbers for the files is good but how do i do the random select a file for the code??

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...