×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

I have a Windows 2000 bat file call

I have a Windows 2000 bat file call

I have a Windows 2000 bat file call

(OP)
I have a Windows 2000 bat file calling for an ant target that is accessing VSS database on a network computer. If I run the script from my desktop it works fine, but if it's invoked by MS Windows Scheduled Task it fails to access the VSS database with the following error:

labelCommon:
 [vsslabel] No VSS database (srcsafe.ini) found.  Use the SSDIR environment variable or run netsetup.

BUILD FAILED
file:ant/common.inc.xml:49: Failed executing: "C:\Program Files\Microsoft Visual Studio\VSS\win32\ss" Label $/DataCenter/common/ -C- -I-Y -L20040125 -Y...


When scheduling the job I use the same id/password that I use to login into my computer and into the remote VSS database. Also, the target that send files via FTP to other network computers work fine if scheduled.

Can anybody help me?
Thanks

RE: I have a Windows 2000 bat file call

I think that's because when the batch file is run by window scheduled task, the start-in directory is not the same as the directory of you batch file. If the file for your VSS database is defined in relative path to batch file, the resulting path to VSS database when run by scheduled task would be incorrect.

RE: I have a Windows 2000 bat file call

(OP)
Hi byam,
I specified both vss.home and VSS_drive as absolute path in ANT_ARGS. VSS_drive belongs to a remote computer which I mapped to my machine. Also, from the error message it's seen that the path for ss.exe is found, but it just failed to execute for some reason.  BTW, I don't know what's the SSDIR env variable, but setting it didn't help. Anybody knows how Scheduler privileges effect execution of a job that's running fine when starting from DOS?
Any other suggestions?
Thanks.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close