SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Batch file
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

yadhu_cse
Constraint Violating Yak Guru

India
252 Posts

Posted - 10/03/2011 :  01:24:00  Show Profile  Reply with Quote
Hi,

i have a batch file that will execute files in the current directory.. my question is that . if i execute the batch file in one system it ll execute files in the current directory with out specifying complete path but same is not working in aother system.
i have copied batch file aswell as required files in the same directory...
can u tel me the reason why its differs in other syste. if i give complete path it works if not it will gives error. coulde not able to find file.

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 10/03/2011 :  01:26:17  Show Profile  Reply with Quote
whats the path passed to batch file? is it UNC path or mapped drive path?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

yadhu_cse
Constraint Violating Yak Guru

India
252 Posts

Posted - 10/03/2011 :  02:04:51  Show Profile  Reply with Quote
no its not mapped drive.
Go to Top of Page

yadhu_cse
Constraint Violating Yak Guru

India
252 Posts

Posted - 10/03/2011 :  02:06:29  Show Profile  Reply with Quote
its stand alone system
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 10/03/2011 :  02:23:54  Show Profile  Reply with Quote
so is the path like \\servername\...

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

yadhu_cse
Constraint Violating Yak Guru

India
252 Posts

Posted - 10/03/2011 :  02:27:09  Show Profile  Reply with Quote
no. i just mentioned "xyz.zip"
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 10/03/2011 :  02:37:39  Show Profile  Reply with Quote
then where's path specified?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

yadhu_cse
Constraint Violating Yak Guru

India
252 Posts

Posted - 10/03/2011 :  03:02:25  Show Profile  Reply with Quote
in batch file if i mention c:\xyz\abc.zip it works fine.
but if i place batch file and abc.zip in same directory and if i mention just abc.zip it doesnot work.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000