Use unc path in gui_exec function

Hi,
is it possible to use an UNC path in the GUI_EXEC function?
For example:
  call function 'GUI_EXEC'
     exporting
       command = '\\192.168.8.43\myfolder\myexec.bat'
     importing
       returncode = i_returncode.
Thanks in advance.
Regards.

Calling an external program
You want to call a program on your PC from an ABAP program ? try this function :
*This example calls the dos prompt DATA:
i_returncode TYPE i.
CALL FUNCTION 'GUI_EXEC'          
    EXPORTING
        command = 'CMD' <<==-- CMD calls the DOS prompt but you can put any program here
PARAMETER = 'test'
    IMPORTING
        returncode = i_returncode.
there is a lot of other functions to communicate with the PC like:
GUI_CREATE_DIRECTORY GUI_DELETE_FILE GUI_DOWNLOAD
GUI_EXEC
GUI_FILE_SAVE_DIALOG
GUI_GET_DESKTOP_INFO
GUI_GET_FILE_INFO               
etc...

Similar Messages

  • Windows Server 2012 - Printing using UNC path not working

    Hi,
    I have a problem printing using the printer's UNC path ("\\Server_Name\Printer_Hostname") to work with a web
    app hosted on IIS 8. With a windows forms application the UNC path is working fine and the app prints.
    With
    the web app I receive an error "The data area passed to a system call is tool small". 
    Also,
    in the event viewer under Applications and Services Logs -> Microsoft -> PrintService -> Operational, I receive the error "The print spooler failed to reopen an existing printer connection because it could not read the configuration information
    from the registry key S-1-5-82-1980832875-2702362896-1795126167-3622310632-1152289074\Printers\Connections. The print spooler could not open the registry key. This can occur if the registry key is corrupt or missing, or if the registry recently became unavailable."

    I have contacted IIS forum support.
    Please review the link: http://forums.iis.net/p/1213109/2079229.aspx?Re+Windows+Server+2012+Printing+using+UNC+path+not+working
    Their final response:
    Printing from ASP.NET using System.Drawing.Printing itself is a horrible approach, as this namespace was designed for Windows Forms only. The designers did not take everything about ASP.NET in mind, so any issue can happen. That can answer why the HP model
    works while the Samsung fails, as the HP one just "happens
    to work",
    http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.aspx
    Similarly, System.Printing was designed just for WPF.
    About which printing API to use in ASP.NET/IIS, there is no clear answer so far. Thus, your only resource is Microsoft support, who can perform further analysis (with their dedicate utilities and of course Windows source code) and might come across a solution
    to help you out. This is not a trivial scenario.

  • Can Additional Document Directories use UNC Paths?

    For Sun One WS 6.0 SP 7 on Windows 2000
    Can additional document directories use UNC paths, or does the directory containing the HTML documents have to be on the server running the Web Server? The documentation
    http://docs.sun.com/source/816-5682-10/esapui21.htm#80857
    says:
    "Map To Directory. Specifies the absolute path of the directory you want the URL prefix to map to, for example,
    C:/iplanet/marketing/pubdocs/index.html"
    But could you instead use:
    \\servername\path\somedocs\
    Anyone ever tried this? And would you have to swap the direction of the slashes?
    //servername/path/somedocs/
    Thanks!
    --John                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    For Sun One WS 6.0 SP 7 on Windows 2000
    Can additional document directories use UNC paths, or does the directory containing the HTML documents have to be on the server running the Web Server? The documentation
    http://docs.sun.com/source/816-5682-10/esapui21.htm#80857
    says:
    "Map To Directory. Specifies the absolute path of the directory you want the URL prefix to map to, for example,
    C:/iplanet/marketing/pubdocs/index.html"
    But could you instead use:
    \\servername\path\somedocs\
    Anyone ever tried this? And would you have to swap the direction of the slashes?
    //servername/path/somedocs/
    Thanks!
    --John                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • SharePoint 2013 Media Player using UNC path directly without using a Website in IIS (either out of the box or custom player using javascript only)

    Hi,
    There isn't much info on this and I am hoping its possible.
    I have come across the following article which explains how we can setup SharePoint 2013 Asset Library using video links using a website in IIS that is mapped to a UNC path.
    http://stevemannspath.blogspot.com.au/2012/12/sharepoint-2013-videos-in-sharepoint.html
    This is great. However we have an issue where I work and I need somehow to get SharePoint mediaplayer to point to a video directly using the UNC path like :- \\WINSP13\TempVideos\NTV_Carr_Indig.wmv without the use of a website in IIS.
    I understand that we won't be able to stream the video then thats ok.
    when trying to add a video link to an asset library using the UNC path, we get the following error: We don't support
    playing a video of that format from a file share.
    Is there a way or a workaround to do this? we are using only javascript to do this (AngularJS or any custom Javascript player such as MediaElement)
    Thanks
    Kind Regards,
    Will

    From a SharePoint architecture perspective, this is a BAD design, since you are rerouting the communications (from the client to the UNC) away from and outside of SharePoint... as a result, SP cannot provide any level of guarantee about the ability for videos
    to play on the client machine.
    Secondarily, I'm not sure that the browser will let you pull resources from such different locations (doing so has been the root of several type of attacks, such as "Cross Site Scripting").
    That said (and assuming the browser lets you), you can always use JS to handle creating the video player HTML and setting the UNC location... instead of using a site asset library to store the links, just create a list for the videos
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Using UNC Path With Execute Process Task

    I have an Execute Process task in which the process can either delete, get or put files to an SFTP site. The executeable takes arguments in the following format:
    "host" "user" "password" "put" "full local path/filename" "full remote path/filename"
    I have the task configured as follows:
    RequireFullFileName: True
    Executeable: \\server\groups\Development\ETLFiles\ETL_Utilities\ocsshhelper\ocsshhelper.exe
    Arguments: sftp user password \\server\groups\Developmement\ETLFiles\ETL_Data_Files\CT_FS_Export_20081113.csv stateExport\export
    WorkingDirectory: \\server\groups\Development\ETLFiles\ETL_Utilities\ocsshhelper
    WindowStyle: Hidden
    Arguments, Executeable and WorkingDirectory have been configured as Expressions. When I execute the package in BIDS from my Windows  XP SP3 machine, The task fails with the following error:
    [Execute Process Task] Error: In Executing "\\server\groups\Development\ETLFiles\ETL_Utilities\ocSSHHelper\ocsshhelper.exe" "sftp user password put \\server\groups\Development\ETLFiles\ETL_Data_Files\CT_FS_Export_20081113.csv stateExport\export" at "\\server\groups\Development\ETLFiles\ETL_Utilities\ocSSHHelper", The process exit code was "-532459699" while the expected was "0".
    My domain account has 'effective' full control rights to the location of ocsshhelper.exe.
    It could be that the executable does not support UNC paths, and I'm checking that. I have another package that uses this same application, but uses the physical path, and there are no problems. Does the Execute Process task have issues with UNC paths?
    Thank you for your help
    cdun2

    Actually it doesn't work properly in SQL Server 2008 R2.  I have a similar EP task.  If I set the working directory to \\server\share\subdir the task fails. However, if I map a drive latter to the \\server\share and set working directory to <drive>:\subdir
    it works

  • Using UNC paths with Safari

    Hi All
    I am probably going to look stupid here but.... How do you use a UNC path in Safari?
    When I type in \\myserver\ looking for a local server Safari converts it to http://myserver/ which obviously gives me a totally different result. Just used to doing this in i.e. and use it alot in my daily job.
    Any advice appreciated?
    Many thanks
    TSM

    You should file enhancement request regarding this issue to https://bugreport.apple.com. However I doubt Apple developers implement it since other tested browsers like Firefox and Opera don't support this paths either.

  • Help configuring adobe media server's apache to use UNC paths and use multible VOD directories

    I am experimenting with v 5.03 for media server with look to upgrade our current pool of v4.x server to support ipads etc.
    i have set the ams conf file and have in the past use a unc paths for my VOD_Dirs
    eg
    VOD_DIR = C:\Program Files\Adobe\Adobe Media Server 5\applications\vod\media
    VOD_DIR_1 = \\prodserver1\media\data\VOD\Media
    VOD_DIR_2 = \\prodserver2\media\library\Preview
    VOD_DIR_3 = \\prodserver3\media\preview
    how and where do i need to do this for the http streaming ?
    cheers
    Robert

    You use Apache config files for the same...namely httpd.conf.

  • Sharepoint 2013 Does not open files using UNC path from Server

    Hi All,
    Just setup our new 2013 sharepoint intranet site , I tried adding a hyperlink to a document stored on our server using a UNC path file://servername/share/filename.doc but when i click on it it takes me to a blank Webpage in a new tab.
    I have turned on "open client applications" in the site collection features hoping that would help ....buuuuuut it did not.
    Also tried variations in the UNC path eg: \\servername\share\filename.doc etc..
    Any help would be greatly appreciated
    Thanks

    Open start run > type > file://servername/share/filename.doc Does this works
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/63b229de-ce4a-42be-b209-2c0f33d4b0d5/problem-opening-an-access-file-from-a-unc-file-link-in-sharepoint?forum=sharepointgeneralprevious
    Actually the problem I described is an Internet Explorer issue and I will try to get resolution in the appropriate forum.  IE exhibits the described behavior whether the link is in a Sharepoint site page, or in a regular non-Sharepoint web page. 
    Mozilla does not have the issue.
    Check below:
    http://social.msdn.microsoft.com/Forums/en-US/3f2c34cc-5686-4e03-ba26-092aaa29ff33/link-from-document-library-to-unc-path
    If this helped you resolve your issue, please mark it Answered

  • How to create Directories using UNC Paths (DirectoryHandler.CreateDir )

    Edited by: user643946 on 24.06.2009 03:47 (Deleted Thread, has been something for the School of Bleeding Obvious)

    Hi,
    >>When i created the directories in second schema, the directory paths of the first schema are automatically changed to the second path.
    If you have removed the REPLACE clause of your create statement, then you would see that is not possible.
    SYSTEM> connect scott/tiger
    Connected.
    SCOTT> create directory mydir as '/tmp';
    Directory created.
    SCOTT> connect legatti/pwd
    Connected.
    LEGATTI> create directory mydir as '/tmp';
    create directory mydir as '/tmp'
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    LEGATTI> select owner,object_name,object_type,created
      2  from dba_objects where object_name='MYDIR';
    OWNER     OBJECT_NAME    OBJECT_TYPE         CREATED
    SYS       MYDIR          DIRECTORY           19/12/2007Cheers
    Legatti

  • Use UNC path from Active Directory to derive network home location

    Good Morning
    I am trying to get my Macbooks to conenct to a Windows Server 2003 home directory. I have followed the steps in the following article with no luck:
    http://docs.info.apple.com/article.html?path=serveradmin/10.4/en/c7od49.html
    I can bind to the Microsoft Active Directory with no problems and I can connect to the file share on the server that I want to make the network home location, but I can't get it to work automatically as I would expect it to.
    We will have hundreds of users connecting that will need their home folders redirected to the network folder location.
    Any help would be appreciated.
    Thanks

    I forgot to mention that before upgrading to 10.8.4 the login item below was present:
    Item: SMB://network path
    Kind: Unknown
    After the upgrade:
    Item: Unknown
    Kind: Unknown
    After restart it disappears and never returns (again, this only occurs for admins)

  • Fail to connect database using UNC path

    I have encoutered problem to connect sample database which is located at share drive such as J: drive.
    I setup up the environment at follow:
    The database is save at J: drive such as J:\xtreme.mdb
    I use crystal report 2008 to create report template and the database location is J:\xtreme.mdb
    [http://i105.photobucket.com/albums/m229/kenkit/diagram1.jpg]
    Then, I published the report into CRS2008. While I preview the report. I got the error message
    "The database logon information for this report is either incomplete or incorrect. "
    The report database configuration is at below:

    crosspost

  • Mapped Path being used instead of UNC Path

    We have recently upgraded our Adobe products from CS3 to CC.  In CS3, images that were added to InDesign had the UNC path in the "Links".  With CC, we are finding that the Mapped Path is in the "Links".  This different behaviour is causing some issues.
    Here is the process that we are using to add images to an InDesign file:
    1.  Open Bridge
    2.  Browse to a folder (X:\ which is mapped to \\Server\Hi-Res\)
    3.  Drag and drop an image from Bridge to InDesign
    In CS3, a path of "X:\MyFolder\MyImage.tif" would get converted to \\Server\Hi-Res\MyFolder\MyImage.tif
    In CC, the path remains as "X:\MyFolder\MyImage.tif" which is causing us some issues.
    Is there a way, in InDesign CC, to tell the application to use UNC paths when a Link is created - similar to what we were experiencing with CS3?
    Thanks,
    Jody

    Hi Lee,
    In CS3, UNC paths were used in File Path for images but this behavior was changed in CS4 (most probably) and UNC paths are no more supported.
    Regards,
    Pooja

  • Beware UNC path syntax for shared dirs used in a windows cluster!

    This seems to be an undocumented but vital piece of information:
    If you are setting up a Windows based cluster and you are using UNC paths
    to identify the shared file locations for IntradocDir (Instance Dir), Vault dir
    and Weblayout dir, please start your paths with 4 backslashes!
    For instance, if you are putting your share on \\MYNAS\share\cs
    The paths as configured in the intradoc.cfg should follow this pattern:
    IntradocDir=\\\\MYNAS/share/cs
    VaultDir=\\\\MYNAS/share/cs/vault
    WeblayoutDir=\\\\MYNAS/share/cs/weblayout
    Now, the documentation, if read carefully, will lead you to believe starting
    with two forward slashes will work.
    In other words, like this:
    IntradocDir=//MYNAS/share/cs
    And on an initial system start, it may even seem good to go, BUT BEWARE!
    When using only the forward slashes, at least two problems may arise:
    1. Any custom component which use java and therefore require a classpath may
    fail to load their classes. This will result in ClassNotFound exceptions
    when class loading is attempted.
    2. OracleTextSearch may not be able to index files and you will see "oit" errors
    in the log.
    This may be jvm and windows version specific but I noticed this on Windows server 2008 R2
    using the JRockit 64 bit jvm.

    As mentioned above I spotted Shadow Copy configuration problems in clustered environment on Windows 2012 R2 with latest updates.
    Enabling Shadow Copy via Cluster Manager on disk will enable schedule and snapshots but schedule is not-cluster aware (is created locally on node) and "Previous Versions" are visible only locally but not via shared folders (UNC path accesible by
    clients)
    When I spotted this behavior I tried different way going via Computer Management and cluster resource name but console always hangs for me when using "Configure Shadow Copies". After many minutes configuration window is opened (Hurray!) but any
    action there will hang whole console again. Enabling Shadow Copies will fail with "0x80004005: Unspecified
    error" for creating scheduled task but "Next Run Time" column still shows "Disabled". Checking disk resource via Cluster Manager shows it is enabled and ?local? scheduled task is created.
    Computer management console still shows DISABLED and any action freezes whole console (only when cluster resource name is used).
    This fix I found, unfortunately, is not applicable to 2012 R2 OS: https://support.microsoft.com/en-us/kb/2894464
    To sum up there is a major bug in MS implementation in Shadow Copies for Shared Folders when clustering is used or it is still not supported in 2012 R2? Doing it outside cluster works as it should (without freezes and Previous Versions are available via
    UNC)
    There is no documentation about FileServer Clustering on 2012(R2) unfortunately.
    Could someone from MS clarify it?
    Many thanks
    Filip
    EDIT:
    Ok, one correction:
    Scheduled task is not created in "Failover Clustering" hive of Scheduled tasks as user may expect but failover of fileshare to other node will unregister/reregister it on active node only.

  • Excel Formula Referring to a UNC Path is Corrupted when Open with Particular Workstation

    Hi Experts & Support,
    I have a critical problem when trying to refer across Excel workbooks which all are located in different network folders.
    There is a cell formula referring to another Excel file using UNC path, for instance, \\myserver\share\folder1\file.xlsm.
    It works as long as anyone who is opening the file has no mapped network drive-- access this Excel file directly via UNC path. 
    However, it turns out that one of the workstation (Windows 2008 Server x64), when trying to access this file--even from UNC path directly-- the link is corrupted. The formula is changed automatically to \\myserver\folder1\file.xlsm (please notice a missing
    \share\).
    And therefore, when the user on Windows 2008 Server save that Excel file, it causes the original file to be corrupted and every one who access the same file from another computers will all encounter a broken link then.
    This Windows 2008 Server has no mapped network drive at all. We have done a lot of researches on the Internet but still couldn't find a solution to this. Is there any way we can investigate further and resolve this issue please?
    Thanks in advance.

    Hi,
    In general,this issue should be  caused by a mapped drive.you can refer to the KB below:
    http://support.microsoft.com/kb/328440/en-us
    However, as you can be sure that there is no mapped drive in this server. could you please provide a litter more information about this server? Did a different version of Excel install in this server? Maybe you can try a repair of the office
    program.
    And I guess we can avoid this by using Hyperlink function.
    Wind Zhang
    TechNet Community Support

  • Flash Player 14 onwards - UNC Path not working

    Dear all,
    Up until and including Flash Player 13, I have been able to refer to a .SWF file using the UNC path of the file (\\Server\Folder\File.swf).
    Since I have installed both Flash Player 14 and 15, I have been unable to refer to the file using the UNC path, but instead having to Map Network Drive of the Server and Folder (X:\File.swf).
    Can someone tell me why I can no longer use the UNC path? Or is there a setting I need to check?
    Kind regards,
    Chris

    Hi Vincent.
    Thanks for responding to my post. I can confirm that I was running Version 15.0.0.152, which didn't work with UNC paths. I have now tried the beta Version 15.0.0.159, which fixes the issue.
    What can I take from this? Well the good news is that this is resolved in future versions.
    The bad news is that my user base can have any version installed on their machines. Some users are on Version 13, some on Version 14 and some on Version 15. The issue is that some of these users have opted for the "Never check for updates" option after Flash has installed, meaning that they are happy to remain on their chosen version. Having a user base of at least 500, it's impossible for one self to update all machines to the beta version. At the same time, users will now have to wait an unspecified period of time for the next version and if they have installed Version 14 or 15 with the selected option "Never check for updates", then I am permanently going to struggle with using UNC paths.
    This episode has the potential to cause serious issues for myself as a developer and also for my company. My respect for the Adobe Flash product has dropped big time.
    If there are any other suggestions, then I am all ears.
    Regards,
    Chris

Maybe you are looking for