*.bat and *.cmd running problem

vijay_g
Member Posts: 884
hi,
I am getting problem when calling a bat or cmd file(SHELL('D:\upload.cmd'),SHELL('D:\upload.bat')) through navision.
When i double click on both file this is running perfectly and uploading a text file on ftp server correctly.
any help...!!!
I am getting problem when calling a bat or cmd file(SHELL('D:\upload.cmd'),SHELL('D:\upload.bat')) through navision.
When i double click on both file this is running perfectly and uploading a text file on ftp server correctly.
any help...!!!
0
Comments
-
0
-
No it's classic but still it's not working with both of command SHELL and with automation variable.0
-
The other two possibilities that come to my mind,
1) Try to find out what NAV is trying to do; is it trying locate these files on the client or on the server?
2) Permission issue: Does the user account which is running the NAV service have access to these folders and files?
Chn0 -
Chinmoy wrote:The other two possibilities that come to my mind,
1) Try to find out what NAV is trying to do; is it trying locate these files on the client or on the server?
2) Permission issue: Does the user account which is running the NAV service have access to these folders and files?
Chn
1. I am uploading a file on ftp server.
2. User has admin right to access this file.0 -
Other than this I am not able to think of any other problems.. however, I would again like to rephrase one of my questions,
where is this d:\upload.bat or d:\upload.cmd file? If it is on the client from where you are trying to run, then, are you sure that the NAV client is not trying to find this file on theof the server?
Chn0 -
Chinmoy wrote:Other than this I am not able to think of any other problems.. however, I would again like to rephrase one of my questions,
where is this d:\upload.bat or d:\upload.cmd file? If it is on the client from where you are trying to run, then, are you sure that the NAV client is not trying to find this file on theof the server?
Chn
This is d:\upload.bat on client pc and how can it search the file on server even when i am double clicking on this bat file then it's uploading the file successfully.0 -
I tried it out with a simple directory listing and copy file from one location to another, and everything worked fine. I guess you need to check for any error / warning trails logged in the windows events to look for hints to solve your problem. Also, try to put some message etc. in the batch file to see if it is actually running.
Chn0 -
I got resolved it. =D>
Actually the problem was with mput*.* or mget*.* command where this is searching the file on ftp so i have put LCD command before the mput or mget to search it on local system and now it's working fine. When we double click on .bat or .cmd then it takes the file path by default from local directory because of the problem was occuring. anyway..
Thanks a lot Chinmoy.....0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions