Hi I'm fairly new to batch files, so sorry if this question seems stupid but I really need some help.
So I need my batch script to check if it is in a specified folder, say %userprofile%\Desktop for example. I don't want it to care about its own filename. I have absolutely no idea where to start. I know how to get the current path/filename etc but that's about all I know. How do I make the program compare its current path with the path that I want to see if it's in? Or is there another more efficient method?
What I want to achieve is like this:
if this file is in Desktop folder(
echo It's here
)else(
echo It's not here
)
Any help is appreciated, thanks everyone