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
    18,245
    Thanks
    203
    Thanked 2,555 Times in 2,533 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,448
    Thanks
    11
    Thanked 598 Times in 578 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 2014/10/20)
    BROWSER STATS [% share] (2014/9/03) IE7:0.1, IE8:4.3, IE11:9.2, IE9:2.7, IE10:2.6, FF:16.8, CH:47.5, SF:7.8, NON-MOUSE:37%


  •  

    Posting Permissions

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