[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

06/14/2009 at 09:01PM PDT, ID: 24491173
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

Citrix: Batch file to open UNC path locally on workstation

Asked by ServerManagementTeam in Citrix, MS DOS

Tags: Citrix, Batch file

Hi Everyone,

We have a client who have this application which only runs through command line, so I have written a batch file to ask for the user's input and then from that information it pushes it to the application, which then dumps the info to a shared location. To make this application more user friendly, they have requested that the application open a UNC path before input is requested (So that the user can copy files to the local server easily, where the app is hosted, so that they can be processed).

The attached code is what I have written... but the problem is that when it opens the UNC path, it does not actually run that command on the user's workstation, it runs it from the server, so the actual window is not his Explorer.exe, it's actually that of the Citrix Server publishing the apps. Therefore the user cannot Drag and Drop the files directly into this location.

My Question is, is there a way for a batch file to open a UNC path so that the workstation session can drag and drop into this UNC path? If not, is there a way that I can get around this or alternate method to acheiving this goal? (Is it possible for Citrix to map a network drive locally through a published app?)

The reason we have used psexec in this script is because the application needs to use .NET 3.5 (Windows 2003 minimum requirement) and we do not have any Windows 2003 TS Licenses yet, so still running Windows 2000 TS environment.

The second batch file on the Windows 2003 Server (Execute.bat) Simply uses the two variables against the exe of the application and outputs the data locally to that server.

Citrix Version: PS4
Published App Server: Windows 2000 Advanced Server
Application Server: Windows 2003 R2

Your help would be greatly appreciated.

Kind Regards,
Stefano
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
@echo Off
 
Set OBRPath=
Set OUserName=
 
Echo - ------------------------------------------------------------------------
Echo -                <Application Name>
Echo - ------------------------------------------------------------------------
Echo - You are currently connected to the Corporate Server
Echo - Opening OBJ File Share...
 
Start explorer.exe \\<SERVERNAME>\AuditPurposeTool\OBRFiles\
 
Echo - Please ensure files have been copied to the share before beginning
 
set /p OBRPath="Please Enter the Filename: "
set /p OUserName="Please Enter the User Name: "
 
cd C:\Admin\Bin\
 
Psexec \\<SERVERNAME> -i "C:\Program Files\OCL\AuditPurposeExporter\<SERVERNAME>\Execute.bat" %OBRPath% %OUserName%
 
Echo - Files Extracted, Opening Path...
 
Start explorer.exe \\<SERVERNAME>\AuditPurposeTool\Output\
 
Exit
[+][-]06/15/09 11:49 AM, ID: 24631739

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/15/09 07:49 PM, ID: 24634565

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/15/09 10:47 PM, ID: 24635118

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Citrix, MS DOS
Tags: Citrix, Batch file
Sign Up Now!
Solution Provided By: ServerManagementTeam
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20090824-EE-VQP-74 - Hierarchy / EE_QW_3_20080625