Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Nov 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    batch file issue

    I'm trying to code something in batch and i need some help...

    I need to change the batch files dir to the only folder in the next folder
    IE:
    move from folder 1 to folder 2

    contents of folder 1:
    folder 2

    however i don't know the real name of folder 2 so I need batch file to like pick the folder by its number or something....

    is there a solution(i would like to code this in batch)

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,918
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    JavaScript is purely a client-side language, and no capability write to a file, communicate with the server, or access the client's operating system.


    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

  • #3
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,296
    Thanks
    10
    Thanked 583 Times in 564 Posts
    you can actually extract the folder's number using dos's SET command, but this isn't the place to ask about batch command....

    you might also look into jscript or vbscript shell scripts; they provide command line access to a more-familiar programming environment.
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/5/28) IE7:0.1, IE8:5.3, IE11:8.4, IE9:3.2, IE10:3.2, FF:18.2, CH:46, SF:7.9, NON-MOUSE:32%


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •