Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi all! We have been experiencing an issue on site where threads have been missing the latest postings. The platform host Vanilla are working on this issue. A workaround that has been used by some is to navigate back from 1 to 10+ pages to re-sync the thread and this will then show the latest posts. Thanks, Mike.
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Close Vista batch file on completion?

  • 21-06-2009 2:28pm
    #1
    Registered Users, Registered Users 2 Posts: 2,694 ✭✭✭


    Anyone know how to do this on Vista? Tried CLS and EXIT and neither seem to work? :confused: I'm left with the cmd box which is not ideal.


Comments

  • Closed Accounts Posts: 23,718 ✭✭✭✭JonathanAnon


    post the batch file here. Are you sure that the batch file is reaching the exit command at the bottom. It could be hanging in a loop or something.


  • Registered Users, Registered Users 2 Posts: 2,694 ✭✭✭Dingatron


    It's nothing complicated, just a batchfile to mount a network file share automatically on log in.
    start /min
    net use P: \\fileserver\myshare password /USER:user /PERSISTANT:No
    exit
    
    

    The file share is mapped but I'm left with a cmd box minimised. Works fine in XP though so must be a Vista thing. Also tried to run the batch file as admin with no difference.


  • Registered Users, Registered Users 2 Posts: 6,344 ✭✭✭Thoie


    That's weird, I run a (ridiculously simple) batch file in Vista, and it always closes itself when done, without any exit command.

    This is it in its entirety:
    mkdir RAW
    move *.nef RAW/
    


  • Registered Users, Registered Users 2 Posts: 6,344 ✭✭✭Thoie


    Dingatron wrote: »
    start /min
    net use P: \\fileserver\myshare password /USER:user /PERSISTANT:No
    exit
    
    


    Actually, looking at that, and given that it won't take long to map, why do you even need to /min at the beginning?

    Have you tried just
    net use P: \\fileserver\myshare password /USER:user /PERSISTANT:No
    
    on its own?


  • Registered Users, Registered Users 2 Posts: 2,694 ✭✭✭Dingatron


    Actually, looking at that, and given that it won't take long to map, why do you even need to /min at the beginning?

    Couple of reason's all valid and all to do with users and 'The mystery of the disappearing drive' and also the sequel 'How to get it back again' :)



    Yep I originally didn't have exit in it which works in XP.

    Added exit when it didn't 'Exit' in Vista. :confused:


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 6,344 ✭✭✭Thoie


    Aha! (or not)

    Just opened up a box, tried start /min and the first thing it does is open ANOTHER box, minimised. Is it possible that the box you're seeing left behind is a second window? As you can see from my batch, I don't start a window, because by calling it *.bat I assume it's going to do that anyway.

    Have you tried just the net use without start or exit?


  • Registered Users, Registered Users 2 Posts: 6,344 ✭✭✭Thoie


    Dingatron wrote: »
    all to do with users and 'The mystery of the disappearing drive'

    This may be another stupid question, but if there's a mystery about the disappearing drive, why not make it persistant?


  • Registered Users, Registered Users 2 Posts: 2,694 ✭✭✭Dingatron


    Have you tried just the net use without start or exit?
    Ah that's worth a go alright.
    This may be another stupid question, but if there's a mystery about the disappearing drive, why not make it persistant?
    The drive is a samba share and not the same user name/authentication as the windows login user so if I set drive as persistent the user needs to input username/password etc on log in. I needed it to be as easy as possible for the users in question. Not ideal I know and I need to tidy it up when I have a bit of time.


  • Registered Users, Registered Users 2 Posts: 1,599 ✭✭✭LizardKing


    if its run as administrator doe it work ?


  • Registered Users, Registered Users 2 Posts: 2,694 ✭✭✭Dingatron


    Can't check till the morning on Ubuntu at home. I think Thoie may be right with the use of

    Start /min

    It makes sense to me anyway...


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 6,344 ✭✭✭Thoie


    How did it go?


  • Registered Users, Registered Users 2 Posts: 2,694 ✭✭✭Dingatron


    Thoie may be right with the use of


    Fair play you were right about not needing the 'start' and exit. All fine with the world now. :)


Advertisement