Move Files in a .bat file not working but did earlier in the day on windows server 2003

Okay I created a simple .bat file to move files with MATL*.txt and REFUND*.txt from one directory on the D: drive  to another directory.  It was working earlier but now it's not working.  Do I need to set an environment path variable to include the D: drive?
bluerodeo68Asked:
Who is Participating?
 
MunndayConnect With a Mentor Commented:
Try opening up command prompt (Start -> Run -> type 'cmd' -> hit ok) and type in the full path to the .bat file (eg. c:\test\test.bat)

This will execute the batch file, but keep the command window open so you should be able to see what errors it reports.
0
 
MunndayCommented:
Please post the contents of the bat file
0
 
bluerodeo68Author Commented:
echo *****OUTPUT FOR M0GLBL01 MATL import txt files***** %DATE% %TIME% >> c:\m0glbl01_scheduled_tasks\M0GLBL01_IMLOG.TXT

move D:\m0glbl01\GlobalConfig\FTP\AP\MATL*.txt D:\m0glbl01\GlobalConfig\FTP\backup >> c:\m0glbl01_scheduled_tasks\M0GLBL01_IMLOG.TXT
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
bluerodeo68Author Commented:
Originally the log file was not created but I had users clicking on the .bat file and it did move the files to the backup folder.

So I shortened the name of the log file and now that's working but the files are not moving when I click on the .bat file.
0
 
bluerodeo68Author Commented:
I was reading be sure that Notepad is saving as "All files" and not as a text file.  Is this important and would it give me inconsistent results?
0
 
bluerodeo68Author Commented:
The system cannot find the path specified "error reported when I run from CMD prompt.
0
 
bluerodeo68Author Commented:
The log file part of the .bat is working.  Sending the time and date of when the .bat is executed; but the move is failing
0
 
bluerodeo68Author Commented:
It was an improper path, I can't believe I missed something so simple.  Thanks for the tip to use CMD prompt for diagnosis.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.