And in any case, nothing I described would explain the GUI error occurring when things work from a command prompt. The one thing that would explain it is possibly a security setting involving network path use.
What about the following 2 checks:. Assume the drive is Q:. Does the error occur now? FYI, this isn't logged anywhere. It simply echoes the current directory to the command window. Since you're doing a click-to-run, the next line I mentioned - the pause command - is critical since it will pause the output until you strike a key, allowing you to see the output.
If you don't have an "echo off" line in the batch file, you would then see output like this:. Yeah - sometimes it is hard to communicate with non-technical users so the thread gets very long; that makes it hard for anyone to keep up with the original request,.
Alex - look closely at the error. The batch never execute so your suggestion will never get used. The OP has an issue with either permissions or with cross system authentication. It is impossible to explain to a non-admin how this can happen or how to troubleshoot this. It cannot be fixed in script and the script cannot be executed so no amount of tracing code will help.
That I not an answer. It is a clue that you "local machine zone" is not set to trust the network. What you have done was to disable an important security measure which is one thng that Trojans try tofool you into doing. Ypu are noow not protected. Office Office Exchange Server. Not an IT pro? Script Center. Sign in. United States English. Ask a question.
Quick access. This email is in use. Do you need your password? Submit your solution! When answering a question please: Read the question carefully. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid. Related Questions. Click Here to get your free tools. Many times a UNC path does not work properly in a command line bat file. This is a hold over from DOS, a compromise to ensure backward compatibility. It starts at Z: and moves backward.
So, if we wanted to run a few command line programs within our share we would call it like this:. When you are finished, and want to remove the mapping you call popd.
Putting it all together we have this:. I have tested this with Windows NT 4 SP6, and it works all the way through Vista…so you are safe using it on any of these versions of Windows. I assume you're talking about a Windows environment? Yes, they only run on Windows. Zuleta, I'm aware of. But "batch file" is not necessarily guaranteeing a Windows environment.
The use of the term pre-dates Windows as do. Add a comment. Active Oldest Votes. It places a marker on each file as it copies, so you can rerun the xcopy command to pick up from where it left off. Hope this helps. Iavinio It's asking file or directory when copying an archive.
Is there a way to suppress that? How to copy a single file from the directory? To get around the "file or directory" prompt, do the command like so Show 4 more comments. Etienne Dupuis Etienne Dupuis I support this.
It is really fast.
0コメント