Jump to content

able72

Member
  • Posts

    7
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by able72

  1. Thank you everyone for your help. I really appreciate it.
  2. Yep. I found that by using cd/? Amazing what you can find in a help function
  3. Ok, don't get this. Here is what I have: @Echo Off & SetLocal DisableDelayedExpansionSet "_BD=%UserProfile%\Documents\1C SoftClub\il-2 sturmovik cliffs of dover - MOD\DashPics"If "%CD%" NEq "%_BD%" PushD %_BD%||Exit/BSet "_$="For %%# In (Templates\*.tga) Do Set/A _$+=1 & For /F %%_ In ('Call Echo(%%_$%%' ) Do Set "_F[%%_]=%%#"Set/A _R=%Random% %% _$ +1Call Echo(Processing "%%_F[%_R%]%%"Call Copy "%%_F[%_R%]%%" Selected\1.tga>NulTimeout 5 1>NulRem Start TrackIRcd C:\Program Files (x86)\NaturalPoint\TrackIR5start TrackIR5.exeTimeout 5 1>NulRem Start Steam Directlycd D:\Applications\SteamStart Steam.exeTimeout 5 1>NulRem Start IL-2 Directlycd C:\Games\SteamLibrary\SteamApps\common\IL-2 Sturmovik Cliffs of DoverStart Launcher.exeIt isn't making the switch to d drive. I've tried entering it manually into the command prompt cd d:\ but nothing, it stays in the c: drive. Any suggestions? Nevermind, I found it. I need to use the /D switch
  4. Yes there is and no there isn't For `Yes there is`: You place your file in the directory which contains the path starting Documents, (on Line 2)e.g. C:\Users\able72For `no there isn't`: You input in the full path within the script, (in front of Documents on line 2)e.g. C:\Users\able72\Documents\1C SoftClub\il-2 sturmovik cliffs of dover - MOD\DashPics Ok, so to make sure I understand (I did get it to work, now I'm learning how). In order to place the .cmd file where ever I want in the structure, I should set the full path directory? So for example, I would change Set "_BD=Documents\1C SoftClub\il-2 sturmovik cliffs of dover - MOD\DashPics" to Set "_BD=c:\Users\able72\Documents\1C SoftClub\il-2 sturmovik cliffs of dover - MOD\DashPics" My next question is, if I want this to be usable by whomever the current user is, should I use the variable %user%? is that right? so it would be Set "_BD=c:\Users\%user%\Documents\1C SoftClub\il-2 sturmovik cliffs of dover - MOD\DashPics" Thank you for your help with this. I would like to learn this, because next I want to alter this code to select random music for startup and a random splash screen (those are in a different location, and use different file extensions). I'll then create a .bat file to call each one in sequence, wait till they are finished, start my TrackIR and then start the game.
  5. Am I supposed to add this to the previous file? Or save it by itself? As a .cmd file I'm assuming?
  6. Can't get it to work. Is there someplace in particular I should place it in relation to the file structure? some way I ought to modify the directory path? Not sure what's happening with it because the command window closes so fast.
  7. Hello, new to coding. I've serched the internet and tried a bunch of different solutions to solve my problem with no luck, so I thought I would ask and see if I couldn't find someone to help me. I am trying to select a random .tga file from a directory (the option to select from sub directories within the primary directory would prove advantageous). Once selected, I would like to copy that file to another directory and then rename it to 1.tga. I'm not picky about whether it is .vbs or .bat or whatever (I will need to know which so I can create it correctly on my machine), just so long as it's something native to Windows 7 x64. Here is the specific application: I'm trying to write some code to randomly change the dashpic in IL-2 Cliffs of Dover. The images are currently stored in my user folder under: \Documents\1C SoftClub\il-2 sturmovik cliffs of dover - MOD\DashPics\Templates It needs to be copied to: \Documents\1C SoftClub\il-2 sturmovik cliffs of dover - MOD\DashPics\Selected and renamed to 1.tga. I would like to be able to change it so that I could perhaps use it to randomize splash screens, etc. Which would have a different directory structure and perhaps a different file extension. Any help would be greatly appreciated.
×
×
  • Create New...