Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Batch Game] Rock, Paper, Scissor by Hack0pz
#4
Yes UserProfile is a special variable, and everything is good, except for your STILL USING "Hackopz" as a directory which will probably never ever exist on another person's computer, and also, up until here:
Code:
if exist %loca% goto intro
CD "%userprofile%\Documents\Hackopz\"

%loca% holds the value of "%userprofile%\Documents\Hackopz\" does it not? so if it doesn't exist, it will go past that if statement and try to navigate using CD to that location that doesn't exist, which is wrong. %UserProfile%\Documents might not always exist either, which is also bad, and there's about a 99% chance that the user "Hackopz" will not exist on someone else's machine either, so that shouldn't even be used.
Reply


Messages In This Thread
RE: [Batch Game] Rock, Paper, Scissor by Hack0pz - by AceInfinity - 01-22-2012, 05:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pass Generator Batch script AceInfinity 0 902 09-30-2012, 10:17 PM
Last Post: AceInfinity
  Batch tutorial goes here? fanta 3 1,510 05-22-2012, 09:25 PM
Last Post: AceInfinity
  [Batch] Trick - View Environment Variables AceInfinity 0 972 05-05-2012, 07:01 PM
Last Post: AceInfinity
  [Batch] Quick Drive Information Script (Created by AceInfinity) AceInfinity 17 7,239 02-09-2012, 08:10 AM
Last Post: AceInfinity
  [Batch Script] File Binary Data Compare - (Drag & Drop / Command Line Args) AceInfinity 5 3,149 01-14-2012, 05:59 AM
Last Post: ISO

Forum Jump:


Users browsing this thread: 1 Guest(s)