6

Why does not Hudson recognize xcopy as a command?

 2 years ago
source link: https://www.codesd.com/item/why-does-not-hudson-recognize-xcopy-as-a-command.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Why does not Hudson recognize xcopy as a command?

advertisements

I have a windows batch command in my hudson build step that is basically:

 xcopy /s *.* \\serverlocation\buildname\

The copy is failing with:

'xcopy' is not recognized as an internal or external command, operable program or batch file.

However, xcopy is usable on the command line (as is copy). What do I need to do to make hudson use xcopy?

Edit: My path is

PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Perforce;C:\Program Files\CVSNT;C:\Program Files\CVSNT\

which is probably why it works from the command line.


xcopy is in your system32 directory; make sure that's in your PATH.

Related Articles

Why does not Rust recognize that a variable is a & amp; str

The below code compiles and runs fine: use std::fmt::Display; fn display(x: &str) { println!("{}", x); } fn main() { let s: &str = "hi there"; display(s); } However, if you change the display function to be fn display(x: &D

Why does not c ++ recognize a string when you try to convert it to another type?

I have a fairly simple class that looks like this: class Person { public: Person(string name): _name(name) {}; void greet(const Person& person) const { cout << "Hello, " << person._name << "!" << endl; }; pr

Why does not OnAttach recognize the proper instance context?

I am having troubles getting Android to set my listener. Somehow the context isn't of the type I am expecting it to be. I'm not sure where I am going wrong. Below is AddEditCharacterFragment.java, where it is throwing an exception because context isn

why does not django recognize my administrator / password when I try to log in?

here is what i did: > python manage.py createsuperuser Username (Leave blank to use 'joe'): admin E-mail address: [email protected] Password: Password (again): Superuser created successfully. Exception AttributeError: "'NoneType' object has n

Why does not tkinter recognize that this window is resized?

When I try to detect that a window is resized with tkinter, it works most of the time. However, there is one exception; that is, when resizing it for the first time vertically and making the window larger, nothing is picked up. I see the initial size

Why does not PHP recognize a program in the PATH of the Windows system when I use it with Apache?

In my local development environment, I have Apache and PHP installed on Windows 7. I'm calling 7-Zip from my PHP program with exec. I tried at first with exec('7z a example.zip example.pdf'); but it didn't create the zip file. After checking the Apac

Why does not indexOf () recognize spaces?

For this program it asks for the user to input their full name. It then sorts out the first name and last name by separating them at the space the put between the first and last name. However, indexOf() is not recognizing the space and only returns -

Why does not getconf recognize BUFSIZ?

$ getconf BUFSIZ getconf: Unrecognized variable 'BUFSIZ' Is there a standard way to determine the value of BUFSIZ from a shell? It's easy enough to write a simple C program to output the value, but I don't quite understand why getconf doesn't do it.B

Why does not PHP recognize two equal strings?

I'm working on a php function that will compare the components of two arrays. Each value in the arrays are only one english word long. No spaces. No characters. Array #1: a list of the most commonly used words in the english language. $common_words_a

Why does not Ebean recognize a non-primitive @Transient member variable?

I would like to exclude items from Ebean persistence. Here is my bean: package entity; import java.util.Date; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import javax.persistence.Transient; import com

Why does not Ptrace recognize the function?

I can't figure out why the function returns an "No such process" error message every time I run it, but simply using the same instructions inline produces the required output. #include <sys/ptrace.h> #include <sys/types.h> #include &

Why does not Git recognize my exclusions .gitignore?

I'm pretty new to Git and trying to understand how it works and why. I have a web project that I'm working on and I have a .gitignore file that has the following line: www/* Now, I need to add just the www folder to my repo, so I've added just an emp

Why does not WLST recognize the user / password in the key and configuration file in the connect () call?

I'm trying to connect to an admin server in WLST using config and key files. There are no error messages but I am prompted for a username and password. These files were created (by another developer who is long gone[1]) with the storeUserConfig() com

Why does not it recognize the @ properties of the main file header?

UIView.h #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> @interface UIView : UIResponder { IBOutlet UILabel *endLabel; IBOutlet UIButton *goButton; IBOutlet UITextField *textBox1; IBOutlet UITextField *textBox2; @property(nonatomic,

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK