Help on scripts please
the-keeper
New Zealand
My friend has challanged me to create a script that will autorun and fill folders on your desktop with shortcuts to spider solitair but have a simple over ride, can someone help me on this one??? =] thanks
0
This discussion has been closed.
Comments
Create folder you want to put the shortcuts into.
Find the location of the item you want to locate (solitare shortcut).
Open notepad++
Do a FOR loop for, say, 50 time iterations.
Inside the FOR loop, COPY from where ever the shortcut is to where you want it.
Save the file as, say, "funny.bat" WITH the quotes. Make sure it actually ends with bat not txt.
Now that you have the script, you need to do one of two things. Either put the script in the "Startup" folder OR go fancy and have the script run on a schedule. To do that you need to find "Task Scheduler" and create a task that runs the script.
Course if that's not what your trying to do please explain.
I gave you a GREAT start. I did the logic part for you. Use google and the things I mentioned. "Windows Batch Script For Loop"
One possible stating point...
and just so you know, im not making this with malicious intent, as qch said its just fun between friends, and i want to learn a bit about scripting.
again, thanks for all the help
FOR /L %%i IN (1,1,5) DO (
ECHO Start of Loop
ECHO %%i
this is what i have so far, im not to sure on how to use the loop, but the copy works just fine.
I spelled it all out, you should not have any problem figuring out what is what. After all, I learned what I know by reading work from others.
in response to Pacifisto: what would the command be for the shortcut?
and how do i put it inside the loop?
And to put it inside the loop, just make sure it's after do( - try on the next line.
But I'm not really qualified to weigh in on this. I've never done any scripting myself, just plain ol' programming.