I have a problem with batch file. If I open CMD (start-run-cmd) and paste there this:
cd /d C:\Progra~1\samba
cygsetup.cmd
start_daemons.cmd
EVERYTHING works perfect,
but if I make BAT file with:
cd /d C:\Progra~1\samba
cygsetup.cmd
start_daemons.cmd
in it, it won't start the program for me...
It's very important to me if someone could help me to make it work for me. I need it make BAT file and to put it to START-PROGRAMS-START UP, to make it start automaticaly when computer starts.I use windows XP.
!!!Question about BAT file
Moderator: DosItHelp
!!!Question about BAT file
Last edited by Pifukas on 21 Apr 2010 07:26, edited 1 time in total.
Re: Question about BAT file
Hi Pifukas,
try to add some "pause" commands for debugging, best on each line.
And if you want to use other batch/cmd files in a batch, try to call them like
jeb
try to add some "pause" commands for debugging, best on each line.
Code: Select all
echo #1
pause
cd /d C:\Progra~1\samba
echo #2
pause
cygsetup.cmd
echo #2
pause
start_daemons.cmd
echo #2
pause
And if you want to use other batch/cmd files in a batch, try to call them like
Code: Select all
cd /d C:\Progra~1\samba
call cygsetup.cmd
call start_daemons.cmd
jeb
Re: Question about BAT file
Thank you. I'll try it today and let you know if it works.
Re: Question about BAT file
It's still not working Can anyone make such a file for me and upload it to USENDIT or someone else. Please. Thank you
Re: !!!Question about BAT file
Hi,
perhaps you should write, what part is not working.
What do you see with the debug version?
jeb
perhaps you should write, what part is not working.
What do you see with the debug version?
jeb
-
- Expert
- Posts: 391
- Joined: 19 Mar 2009 08:47
- Location: Iowa
Re: !!!Question about BAT file
You have to call the .cmd files, as mentioned. Otherwise my personal guess is that something in those other .cmd files isn't returning control back to the original script. Put in the echo commands and pause commands with the call commands and see where it stops working.