Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 91
  • Last Modified:

creating an ICON to run .bat file on remote server

Is is possible to set up an ICON on a domain workstation (Win7)  that runs a .bat file on a server (SVR2003) that is in a workgroup?
0
ADVLUV2FSH
Asked:
ADVLUV2FSH
  • 10
  • 8
1 Solution
 
NVITCommented:
Do you mean a link like the Windows Explorer "Create shortcuts here" option? If so, see my solution here. In your case, you'd use the /A:C switch to create the shortcut: http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Batch/Q_28604990.html#a40573662
0
 
ADVLUV2FSHAuthor Commented:
this is what I need the ability to do.   A client sends a file to our sftp server.  Once my backoffice clerk verifies that the file is correct, they need the ability to copy that file from the original folder on the sftp server to a different folder on the same server but simply clicking on an ICON.   I can run the .bat file locally but cannot run it via the desktop
0
 
NVITCommented:
I can run the .bat file locally...
Can you post the command that runs the .bat? I don't need to see the .bat code - just the command that runs it.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
NVITCommented:
Unless the user is an admin, you may need to share the folder wherew the .bat resides.

Since you're in a workgroup, you may need to make a same-named local account of the user on the 2003 server.

After making the account:
- Logon the user
- Run the .bat locally to confirm it works (or doesn't).
- Logoff.
- Run the .bat from the user's desktop to confirm it works (or doesn't).
0
 
ADVLUV2FSHAuthor Commented:
I created a local account and gave it admin rights.   I shared the folder and also mapped a drive to the server logging the map drive in with the local account.  

Here are the commands I have tried.
C:\windows\system32\cmd.exe /C "z:\FTP Data Files\customerallocations\bat\vegasoul2.bat"

This is the command that works locally
C:\windows\system32\cmd.exe /C "C:\FTP Data Files\customerallocations\bat\vegasoul2.bat"
0
 
NVITCommented:
As the desktop user (not local on server), you can open folder "z:\FTP Data Files\customerallocations\bat" and see vegasoul2.bat there?
0
 
ADVLUV2FSHAuthor Commented:
Yes but it will not run if I try to run it that way.
0
 
NVITCommented:
From the desktop...
- Run CMD to open a cmd prompt window
- Type DIR "z:\FTP Data Files\customerallocations\bat\vegasoul2.bat"
- Do you see the file? If so, type "z:\FTP Data Files\customerallocations\bat\vegasoul2.bat"
- What is the exact error?
0
 
ADVLUV2FSHAuthor Commented:
I do not see the file the error is "The system cannot find the path specified"
0
 
NVITCommented:
- Run CMD to open a cmd prompt window

1. What is the server name? Example: MainServer
- Type NET VIEW \\MainServer
- What is the result?

2. From the desktop...
- Type NET USE
- What is the result?
0
 
ADVLUV2FSHAuthor Commented:
Server side
net view\\afsftpas400
Shared resources at \\afsftpas400
Share name                  Type     Used As Comment
customerallocation     Disk
CVTRADES                     DISK
FTP Data Files               DISK
OPERATIONS                DISK
The command completed successfully

Desktop Side

Status
Disconnected            \\172.24.120.85\customerallocations
0
 
NVITCommented:
What does the Z: map look like? Type:
NET USE Z:

Open in new window

0
 
ADVLUV2FSHAuthor Commented:
C:\Users\klejeck.AFLLC>net use z:
Local name        Z:
Remote name       \\172.24.120.85\customerallocations
Resource type     Disk
Status            OK
# Opens           0
# Connections     2
The command completed successfully.
0
 
ADVLUV2FSHAuthor Commented:
Thank you for your help I now have the ICON working
0
 
NVITCommented:
Thanks for the update, ADVLUV2FSH. Glad you got it working...
0
 
ADVLUV2FSHAuthor Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for ADVLUV2FSH's comment #a40598978

for the following reason:

The answer pointed me in the correct direction.   I needed to use the net use command
0
 
NVITCommented:
ADVLUV2FSH,

If one of my comments provided the Answer for you, Please pick one of either "Accept as Solution" or "Accept Multiple Solutions" links next to the comment. Also choose the grade: A, B, C as desired. See

http://support.experts-exchange.com/customer/portal/articles/608621-how-do-i-accept-a-comment-as-my-solution-

http://support.experts-exchange.com/#hi331
0
 
NVITCommented:
ADVLUV2FSH seems unfamiliar with closing process. Assisted with appropriate links.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 10
  • 8
Tackle projects and never again get stuck behind a technical roadblock.
Join Now