Windows 7 Forums Search
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7 - batch file is not working

 
01-23-2010   #1


Windows 7
 
 

batch file is not working

I created a batch file with rasdial command....if i try to run it a command prompt window opens for a fraction of second and then nothing happens...i tried to run it as admin...still no change..
what do I need to do?

My System SpecsSystem Spec
01-23-2010   #2


W7 Ultimate 64bit W7 Premium 64bit W7 Premium 32bit WXP Home 32bit
 
 


Batch files run as command lines. They open up a DOS window and run then close the window. It's so fast you can't see what happens. If you want to watch while it's running or check for results, open a command prompt then go to the the directory where the batch file is and run it from the command line.
My System SpecsSystem Spec
01-23-2010   #3


Windows 7
 
 


This what happens.....thought rasdial /disconnect is working...without using the ISP name....

i need to connect using rasdial...
Attached Thumbnails
batch file is not working-cmd.jpg  
My System SpecsSystem Spec
.


01-23-2010   #4


Windows 7 Home Premium x64 - Mac OS X 10.6.4 x64
 
 


Quote   Quote: Originally Posted by cybermidas View Post
This what happens.....thought rasdial /disconnect is working...without using the ISP name....

i need to connect using rasdial...
try in putting pause between each line of code in the batch file...that way you will see what line is causing the command prompt to fail and quit
My System SpecsSystem Spec
01-23-2010   #5


Windows 7
 
 


Rasdial is not working....
i am though not sure what is wrong...
the same .bat file used to work in XP...
My System SpecsSystem Spec
01-23-2010   #6


W7 Ultimate 64bit W7 Premium 64bit W7 Premium 32bit WXP Home 32bit
 
 


You need to put the name is quotes since it contains blanks. That should fix you up.
My System SpecsSystem Spec
01-23-2010   #7


Windows 7
 
 


okk...trying it now...
My System SpecsSystem Spec
01-23-2010   #8


Windows 7
 
 


thank you redbirddad!!!!!!
I really cant believe that I didnt knew that...



It was so simple and awesome....
and thank you zidane24 too
My System SpecsSystem Spec
01-23-2010   #9


W7 Ultimate 64bit W7 Premium 64bit W7 Premium 32bit WXP Home 32bit
 
 


No problem!
My System SpecsSystem Spec
Reply

 batch file is not working problems?



Thread Tools



Similar Threads for: batch file is not working
Thread Forum
Help required creating batch file to read .csv file General Discussion
batch file open file for program in the startup folder General Discussion
Help with a little batch file General Discussion
How to create a batch file that will move files based on the file type General Discussion
Windows xp batch file not working in Windows 7 General Discussion


All times are GMT -5. The time now is 09:37 PM.



Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30