Create a Blank Text file if it does not exist in a Given Directory

Hi,
I would like to check if text file in a given folder exists or not if not then create a blank text file in a given directory. I was checking File system task, it has options to create directory and move files, copy files but not creating files.
How can I create a blank text file in a given directory in SSIS using script task or any other way.
Many thanks.
Mustafa
MH

Thanks Saravana for your help. I am using the following code in the script Task two
Imports System
Imports System.Data
Imports System.Math
Imports Microsoft.SqlServer.Dts.Runtime
Imports System.IO
Imports System.Object
Imports System.Security.Cryptography
Imports System.IO.Compression
<System.AddIn.AddIn("ScriptMain", Version:="1.0", Publisher:="", Description:="")> _
<System.CLSCompliantAttribute(False)> _
Partial Public Class ScriptMain
Inherits Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
Enum ScriptResults
Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success
Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
End Enum
' The execution engine calls this method when the task executes.
' To access the object model, use the Dts property. Connections, variables, events,
' and logging features are available as members of the Dts property as shown in the following examples.
' To reference a variable, call Dts.Variables("MyCaseSensitiveVariableName").Value
' To post a log entry, call Dts.Log("This is my log text", 999, Nothing)
' To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, True)
' To use the connections collection use something like the following:
' ConnectionManager cm = Dts.Connections.Add("OLEDB")
' cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;"
' Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
' To open Help, press F1.
Public Sub Main()
' Add your code here
Dim inputFile As String
Dim outputFile As String
Dim encoding As String
Dim PrivateKeyInXML As String
inputFile = Dts.Variables("Item1Path").Value.ToString()
outputFile = Dts.Variables("OutputFile1").Value.ToString()
encoding = Dts.Variables("Encoding").Value.ToString()
PrivateKeyInXML = Dts.Variables("PrivateKey").Value.ToString()
Dim CallCryptoReader As CryptoReader = New CryptoReader(inputFile, outputFile, encoding, PrivateKeyInXML)
Dts.TaskResult = ScriptResults.Success
End Sub
Public Class CryptoReader
Private _FileStream As FileStream
Private _CryptoStream As CryptoStream
Private _ZipStream As GZipStream
Private _RSAPrivateKeyinXML As String
Dim _CryptoAgent As New System.Security.Cryptography.AesCryptoServiceProvider
'System.Text.Encoding
Sub New(ByVal inputFile As String, ByVal outputFile As String, ByVal encoding As String, ByVal PrivateKeyInXML As String)
_RSAPrivateKeyinXML = PrivateKeyInXML
'Create the crypto agent
_CryptoAgent = AesCryptoServiceProvider.Create
'''''''_CryptoAgent.GenerateIV()
'''''''_CryptoAgent.GenerateKey()
'Open cypher text for reading in
_FileStream = New FileStream(inputFile, FileMode.Open)
ReadHeaderFromFile() 'write out aes key to header
'Create the stream to decrypt the AES part of the file
_CryptoStream = New CryptoStream(_FileStream, _CryptoAgent.CreateDecryptor, CryptoStreamMode.Read)
_ZipStream = New GZipStream(_CryptoStream, CompressionMode.Decompress)
'setup complete - run decrypt to unprotect the rest of the file
DecryptFile(outputFile)
Flush()
Close()
Dispose()
End Sub
Public Sub Close()
_CryptoStream.Close()
_ZipStream.Close()
_FileStream.Close()
End Sub
Public Sub Dispose()
_CryptoStream.Dispose()
_ZipStream.Dispose()
_FileStream.Dispose()
End Sub
Public Sub Flush()
_CryptoStream.Flush()
_ZipStream.Flush()
_FileStream.Flush()
End Sub
Private Sub ReadHeaderFromFile()
'Read the AES Key (Protected by RSA Key) and then the IV
Dim UnProtectedAESKey() As Byte
Dim buffer(_CryptoAgent.BlockSize - 1) As Byte
'Read in protected AES Key
_FileStream.Read(buffer, 0, _CryptoAgent.BlockSize)
'Decrypt AES Key
UnProtectedAESKey = releaseKeyFromRSA(buffer)
_CryptoAgent.Key = UnProtectedAESKey
ReDim buffer(_CryptoAgent.IV.Length - 1)
'get IV
_FileStream.Read(buffer, 0, _CryptoAgent.IV.Length)
_CryptoAgent.IV = buffer
End Sub
Public Sub DecryptFile(ByVal outFilePath As String)
Dim outFile As New FileStream(outFilePath, FileMode.Create)
Dim count As Integer = 1024
Dim buffer(count - 1) As Byte
Do Until count = 0
count = _ZipStream.Read(buffer, 0, count)
outFile.Write(buffer, 0, count)
Loop
outFile.Flush()
outFile.Close()
outFile.Dispose()
End Sub
Private Function releaseKeyFromRSA(ByVal key() As Byte) As Byte()
Debug.Print("Protected AES Key - " & key.ToString)
Dim cspParam As New CspParameters()
Dim RSA As New RSACryptoServiceProvider(1024, cspParam)
'private
RSA.FromXmlString(_RSAPrivateKeyinXML)
Dim decryptedAsByte() As Byte = RSA.Decrypt(key, True)
Debug.Print("Release RSA - " & System.Text.Encoding.ASCII.GetString(decryptedAsByte))
Return decryptedAsByte
End Function
End Class
End Class
I am using the Outputfile1 variable. this is the variable where the path of the file will come which was created in the previous script task. In this task i got the exception that it is alread in use.
MH

Similar Messages

  • [SOLVED] database file for multilib does not exist

    Hey guys I ran into a problem today when I tried to install the proper packages I needed to use my wifi card. However when I tried to install it it gives me the error "database file for multilib does not exist" I can t seem to find out why I even tried chrooting into it and installing it that way with no luck. The package I tried to install was "pacman -S wireless_tools netcfg" thanks for the help guys you've been great.
    Last edited by bdawg (2012-09-18 22:57:17)

    bdawg wrote:
    Ok so the whole output is as follows:
    Warning: database file for 'multilib' does not exist
    Error: failed to prepare transaction (could not find database)
    And my Pacman.conf is blank
    pacman.conf and Pacman.conf (with capital 'P') are two different files. Double-check this.
    Are you running a 64-bit system?
    Your /etc/pacman.conf should look like this: https://projects.archlinux.org/pacman.g … an.conf.in but with some repositories configured: https://wiki.archlinux.org/index.php/Pa … positories
    Last edited by karol (2012-09-18 22:13:59)

  • File or Folder does not exist

    I'm having a wierd problem with a png image which generates an error in my script.
    I'm building a UI using the group constructor, here is the line code I'm using to load the image:
    myImg:Image{text:'',image:'(image_folder)/image.png', alignment:['left','top']}
    The script runs with one image but not another one which is also a png of the same dimensions, bit depth etc. For some reason I get the 'file or folder does not exist' error message. If I replace the image with a known good one the script works.
    I've re-generated the image a dozen times. Still no joy.
    I'm not a total noob, though I infrequently write scripts and am completely prepared to learn I've made totally maverick error.
    Any thoughts?

    myImg:Image{text:'',image:'(image_folder)/image.png', alignment:['left','top']}
    I'm assuming that "(image_folder)" is a placeholder or variable and you are concatinating for the file path to the image? When checking file paths for images or what not, I usually try...
    alert(File.decode(File.openDialog()));
    ...to verify that my path is correct. Sometimes there's a extra slash or something I am missing.

  • Ressource file LM00    99 does not exist

    Hi all,
    I am getting an error while running LM00 in internet service in tcode se80.
    The error is : "Ressource file LM00      99 does not exist"
    I have done all the settings in SICF, as given in Raja's blog:
    Running your first  ITS WebGUI application in SAP NetWeaver 04 ABAP Edition - NSP
    and activated all services but still getting an error and not able to execute the code. However other standard tcodes are executing successfully. Only this Tcode Lm00 is not running.
    I'd greatful to all of u to solve this issue.
    Thanks
    Puneet

    Hi,
    Basically my error while running standard internet service for LM00 is:-
    The URL http://server2.XXXXX.local:8000/sap/bc/gui/sap/its/lm00/ was not called due to an error.
    Note
    The following error text was processed in the system PRO : Internal Error
    The error occurred on the application server server2_PRO_00 and in the work process 0 .
    The termination type was: TH_RES_FREE
    The ABAP call stack was:
    Module: %_CTL_OUTPUT_FLUSH of program SAPMSSYD
    Function: CALL_MESSAGE_SCREEN of program SAPLLMOB
    Form: ERROR_MESSAGE of program RLMENU
    Module: DYNAMIC_MENU_BUTTONS_TEXT of program RLMENU
    Form: CALL_SCREEN_MENU of program RLMENU
    START-OF-SELECTION of program RLMENU
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system PRO in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server server2_PRO_00 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server server2_PRO_00 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 100 -u: ABHATTA -l: E -s: PRO -i: server2_PRO_00 -w: 0 -d: 20081204 -t: 103603 -v: TH_RES_FREE -e: Internal Error
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team

  • Service to checkin file if it does not exist, else version the file

    Hi All,
    From java layer I use WEBDAV and use PUT command and this command creates a new file if it does not exist, and if the file exists it versions the existing file.
    I have developed a java component to unzip a folder and checkin all individual files and folders into UCM whenever a zip file is checked in.I would like similar feature in my UCM component.i.e whenever files are unzipped they should always be versioned if they exist.I use the below code,but it always creates a new file(even if file with same name exists in the same folder)
    m_binder.setEnvironment(SharedObjects.getEnvironment());
    m_binder.putLocal("dDocName","");
    m_binder.putLocal("IsAutoNumber", "true");
    m_binder.putLocal("AutoNumberPrefix", "olm_");
    m_binder.putLocal("IdcService","CHECKIN_NEW");
    m_binder.putLocal("dDocTitle",entityName);
    m_binder.putLocal("xCollectionID",parentId);
    m_binder.putLocal("dDocType", "Document");
    m_binder.putLocal("dSecurityGroup","Public");
    m_binder.putLocal("dDocAuthor","sysadmin");
    m_binder.putLocal("dCreateDate","");
    m_binder.putLocal("primaryFile", entryName);
    executeService(ws, m_binder,"sysadmin",true);
    So, I would like to know, if there is a service to achieve the same or is there a parameter I can add in m_binder.putLocal to achieve the same? OR am I suppose to query the UCM Database to check for existence of the file and if it exists I need to manually check out and check it in?
    Thanks,
    Shwetha

    Thanks Fabian and Ryan for your feedback.
    So I queried db to retrieve the ddocName and if no rows are returned my code checks in new file. But if rows are returned I checkout the file using CHECKOUT_BY_NAME and then checkin using CHECKIN_UNIVERSAL using same ddocName.
    Creating/checking in new file is successful.
    For existing files the checkout is successful.I also confirmed the file is checked out by querying documenthistory and ensuring a new row is created with dction = 'Check out'
    But post checkout when i try to re-check using CHECKIN_UNIVERSAL command, I receive the below exception
    intradoc.common.ServiceException: !csUnableToCheckIn,OLM_002103!csCheckinItemExists
    at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplementor.java:2115)
    at intradoc.server.Service.buildServiceException(Service.java:2326)
    at intradoc.server.Service.createServiceExceptionEx(Service.java:2320)
    at intradoc.server.Service.createServiceException(Service.java:2315)
    What am I missing here?
    Code snippet:
    m_binder.setEnvironment(SharedObjects.getEnvironment());
    m_binder.putLocal("IsAutoNumber", "true");
    m_binder.putLocal("AutoNumberPrefix", "olm_");
    String docName = getDocname(ws, parentId, entityName);
    if(docName != null && docName.equals("FILENOTFOUND")) {
    System.out.println("Creating new file");
    System.out.println("parentId is "+ parentId);
    m_binder.putLocal("IdcService","CHECKIN_UNIVERSAL");
    m_binder.putLocal("dDocName","");
    m_binder.putLocal("dDocTitle",entityName);
    m_binder.putLocal("xCollectionID",parentId);
    m_binder.putLocal("dDocType", "Document");
    m_binder.putLocal("dSecurityGroup","Public");
    m_binder.putLocal("dDocAuthor","sysadmin");
    m_binder.putLocal ("doFileCopy", "1");
    m_binder.putLocal("dCreateDate","");
    m_binder.putLocal("primaryFile", entryName);
    executeService(ws, m_binder,"sysadmin",true);
    System.out.println("Created file successfully");
    }else{
    System.out.println("Check out file");
    System.out.println("parentId is "+ parentId);
    m_binder.putLocal("IdcService","CHECKOUT_BY_NAME");
    m_binder.putLocal("dDocName",docName);
    executeService(ws, m_binder,"sysadmin",true);
    System.out.println("File checked out successfully");
    System.out.println("Check in file");
    m_binder.putLocal("IdcService","CHECKIN_UNIVERSAL");
    m_binder.putLocal("dDocName",docName);
    m_binder.putLocal("dDocTitle",entityName);
    m_binder.putLocal("xCollectionID",parentId);
    m_binder.putLocal("dDocType", "Document");
    m_binder.putLocal("dSecurityGroup","Public");
    m_binder.putLocal("dDocAuthor","sysadmin");
    m_binder.putLocal ("doFileCopy", "1");
    m_binder.putLocal("dCreateDate","");
    m_binder.putLocal("primaryFile", entryName);
    executeService(ws, m_binder,"sysadmin",true);
    System.out.println("Checked in file successfully");
    public String getDocname(Workspace ws, String folderId, String originalName)
    throws DataException,ServiceException
    System.out.println("Entered getDocname");
    String val = new String("FILENOTFOUND");
    String sql = "select a.ddocname from documenthistory a, docmeta b, documents d " +
    "where a.did = b.did and a.did = d.did and d.DORIGINALNAME = '" + originalName +
    "' and b.xcollectionid = '" + folderId + "'";
    System.out.println("sql query is : " + sql);
    ResultSet rs = ws.createResultSetSQL(sql);
    if(rs == null) {
    System.out.println("Resultset for getDocname is empty");
    throw new ServiceException("Resultset for getDocname is empty");
    DataResultSet result = new DataResultSet();
    result.copy(rs);
    if(result.getNumRows() >= 1) {
    result.first();
    val = result.getStringValue(0);
    System.out.println("ddocname is :" + val);
    return val;
    else {
    System.out.println("FILENOTFOUND");
    return val;
    Thanks,
    Shwetha

  • [SOLVED] ABS - nasm - install file (nasm.install) does not exist

    I was attempting to build the nasm package and I encountered the following error:
    ==> ERROR: install file (nasm.install) does not exist.
    When reviewing the PKGBUILD file there was a line in the header:
    install=nasm.install
    ArchWiki (PKGBUILD) explains the install directive
    The name of the .install script to be included in the package. pacman has the ability to store and execute a package-specific script when it installs, removes or upgrades a package. The script contains the following functions which run at different times
    I removed the install= line and everything appeared to work.  My question is... does anyone know if the install script it was expecting to find did anything special that is going to cause me grief going forward?
    Thx
    Last edited by dwardca (2013-07-06 04:43:41)

    I figured out what I did wrong.   I copied only the PKGBUILD file out of /var/abs/extra/nasm folder ..  the nasm.install was still in the folder.
    Explains why I couldn't find the answer on Google. 
    Last edited by dwardca (2013-07-06 04:44:13)

  • Part of Photoshop isn't functioning.  Under adjustments, when HDR toning is clicked on I get a code:  Error 48: File or folder does not exist.  Line:11  - $.evalFile(g_StackScriptFolderPath   "StackSupport.jsx");  How can it be fixed?

    The phone company was here working on something while I was gone.  They sat down at my computer (iMac) and since then HDR toning doesn't work.  Get the code:   Error 48: File or folder does not exist.    Line: 11     ->  $.evalFile(g_StacScriptFolderPatch + "StackSupport.jsx");   How can this be fixed?   

    Go to //Applications/Adobe Photoshop [Version]/Presets/ Scripts/Stack Scripts Only/ and see if StackSupport.jsx is there. If it is not, uninstall and reinstall Photoshop to have it added back in. If it is there, first try recreating the Photoshop Preferences (hold down Command+Option+Shift while launching Photoshop).

  • HDR Toning Error 48: File or Folder Does Not Exist

    After migrating to a new computer HDR Toning is no longer available.
    I get a pop-up: Error 48: File or Folder Does Not Exist
                             Line 11  -> $. evalFile(g_StackScriptFolderPath + "StackSupport.jsx");
    What's the fix for this, if anyone knows?
    Thanks.

    Go to //Applications/Adobe Photoshop [Version]/Presets/ Scripts/Stack Scripts Only/ and see if StackSupport.jsx is there. If it is not, uninstall and reinstall Photoshop to have it added back in. If it is there, first try recreating the Photoshop Preferences (hold down Command+Option+Shift while launching Photoshop).

  • Ruler Tool- Error 48: File or folder does not exist

    I am trying to use the new RULER TOOL in CS5 (64-bit mode) running 10.6.4 and I get the following error:
    Error 48: File or folder does not exist.
    Line: 31
    ->  $.evalFile( g_StackScriptFolderPath + "Geometry.jsx");
    Any ideas?

    i'm getting the exact error using Windows XP with CS5.5
    error 48: file or folder does not exist
    line: 31
    -> $.evalFile(g_StackScriptFolderPath + "Geometry.jsx");
    HELP!!!
    someone
    hello ... anyone out there?
    how do we get support for this error?
    e

  • Hi i am getting an error like this while installing Live Cycle Server " The file merge_modules\lc11_common_iam_zip does not exist This file is required sucessfullly run the  Live Cycle Installer.Can any one help me on resolving this issue it would be of g

    Hi i am getting an error like this while installing Live Cycle Server " The file merge_modules\lc11_common_iam_zip does not exist This file is required sucessfullly run the  Live Cycle Installer.Can any one help me on resolving this issue it would be of great help..thanks .

    I think in your situation it would be worth trying the things listed under the event. It does have to do with FRS and it's easy to do. I've used it to fix journal errors after a server unexpectedly restarts and sysvol stops replicating.  I
    could see where it could fix your issue, and if it doesn't, you're out 5 minutes. :)
    The listed registry key does not exist
    Expand HKEY_LOCAL_MACHINE. 
    Click down the key path: 
       "System\CurrentControlSet\Services\NtFrs\Parameters" 
    Double click on the value name 
       "Enable Journal Wrap Automatic Restore" 
     

  • SMC - "The management domain file...does not exist"

    Hi All,
    Just a quickie to see if anyone has seen this and has any pointers to getting out of it...
    Solaris 10 u5 x86. Machine has got SRSS4.0 running on it, the only other modification is CUPS is running in favour of the Solaris lp stuff (got instructions for this off a BigAdmin article).
    Anyways, I use SMC to manipulate user/group stuff on the local machine. SMC launches just fine, and I can gather System Information, view logs, disk configuration, processes etc. However, when attempting to do any user/group/role stuff management, I authentication with root role, click on the relevant panel, and get this:
    "The management server cannot perform the operation requested.
    If this problem persists, refer to the Log Viewer for additional information and contact your Sun Microsystems support provider.
    The actual error reported was:
    The management domain file:/shadowfire/127 does not exist or cannot be managed on server shadowfire."
    The behaviour is consistent. Gee, it was running fine before, AFAIK...
    Any pointers to what may have come unstuck gratefully appreciated, as always :)
    Dave

    I came across the same problem late July almost same day - on a brand new M4000 server with Solaris 10. I use an X-windows client to connect in and open Common Desktop Environment as "root". Then when I invoke SMC it works for everything except trying to open User Maintenance - then I get the error above.
    I came across something quite by accident whilst I was being advised to make edits to /etc/hosts (which I dont think made a difference anyway so I wont mention them)
    If I use my X-Windows client and open Common Desktop Environment as an ordinary user (say "joe") - then invoke SMC from the menu - when asked by the SMC utility to provide a logon then (as you would) enter the root username and password, guess what ! - I could open the User Maintenance icon without the error appearing and make changes and save them.
    Funny how a less privileged user than root invoking CDE seems to provide a basis to get the option to work! I still get the error by using CDE as root
    Wanna Try it?

  • Variable  is used in description text Task description, but does not exist

    Hi,
    I am getting following error in the standard task 207914 ERMS_DECSN.
    Workflow Error
    Variable &REQREQ.REQUISITIONERUSER.ITSDESTINATIONSY& exists in description text Task description, but not in the container
    Message no. 5W146
    Diagnosis
    Variable  is used in description text Task description, but does not exist in the container.
    System Response
    The task could cause workflow errors.
    Procedure
    Correct description text Task description or add the variable to the container.
    Can anybody please guide step by step process to correct this error.
    Regards,
    Deepak

    Hi Deepak,
    I face a similar issue,Task description contains an element which is available in container, but during Check, it throws below error.
    Variable &ZINFO.REASON& exists in description text Task description, but not in the container
    but variable "&ZINFO.REASON&" is not accessed in Task description.
    suggest any ways to check the binding or adjust binding between workflow/task.
    Please provide a solution to fix this error or advice if this error can be ignored?

  • Create a file if it does not exist when a script runs

    I have a shell script I run using automator that puts on the clipboard a string like Page 001, Page 002 and so forth incrementing the number 00x everytime it runs. I use it when I need to sequentially name files when doing things like scanning documents and so forth.
    Presently, I have to manually create a file "~/counter" and enter the integer to start counting from. So if ~/counter contains 0, pbcopy places "Page 001" on the clipboard and so forth
    The shell script
    <pre class="jive-pre">
    #!/usr/bin/env bash
    myvar=$(cat ~/counter);
    let myvar=$myvar+1;
    mycopy=$(printf "Page %03d" $myvar);
    echo "$mycopy" | pbcopy;
    echo "$myvar" > ~/counter;
    </pre>
    works fine now.
    I want to modify the script so that if ~/counter does not exist, the script creates a file and initializes an integer value say 1 in the file. If the file exists, the script uses the integer used in the file.
    How can I get this done?

    And because I can not leave "Well Enough Alone"
    #!/usr/bin/env bash
    count=0
    [[ -r ~/counter ]] && read count anyjunk_aftercount <~/counter
    count=$((count+1))
    echo "$count" >~/counter
    printf "Page %03d" $count | pbcopy
    The anyjunk_aftercount is just in case something else gets into ~/counter. Assuming the first non-blank field on line 1 is the count, then anything following the count will be stuffed into anyjunk_aftercount and since the script ignores it, it will go away when the script re-writes ~/counter with just $count

  • Saving photos to the web by creating events. Called the destination folder does not exist.

    Hello,
    I ask you for advice (assistance). A week ago I re-installed the PC and installed to the computer again Photoshop CS5. Everything works for me except for the function of storing images for web by creating events. Called me constantly destination folder does not exist. The problem I had before. I ask you this advice on how to solve this problem.
    Thanks for the advice

    hi,
    i don't know if i integrate your code correctly, but it doens't work for me. I presently create skin for client and this plugin is really usefull for me.
    i use win7 64bit home edition, and photoshop cs5
    there is how i integrate this :
    // EDIT ALEX GRENIER
    function getPreferencesFolder() {
         var userData = Folder.userData;
         if (!userData || !userData.exists) {
              userData = Folder("~");
         var folder = new Folder(userData + "/xtools");
         if (!folder.exists) {
              folder.create();
         return folder;
    function exportChildren(dupObj, orgObj, dupDocRef, folder) {
    if (getCSVersion() >= 10) // CS3 Only
         // Create assets folder in Flex app's directory
         // var tempFolder;
         // tempFolder = new Folder (folder + "/assets/");
         // tempFolder.create();
         // EDIT ALEX GRENIER
         var tempFolder;
         tempFolder = getPreferencesFolder();
    i put the code creating the folder in comment and put your code in place, i also put your function before the function creating file.
    With the base code (without modification) photoshop is able to create my folder assets, but when it try to export the png, it export nothing, so i have a empty folder.
    thank you,
    Alex

  • The file /_controltemplates/15/ does not exist

    Hi Everyone.
    We are planning to migrate from share point 2010 to SharePoint 2013.So we have created one POC environment to test the customizations(master pages,Page layouts,web parts,site definition,Site templates) in SharePoint 2013.We have installed Visual Studio 2012
    to convert VS2010 solution.We have done with the converstion from VS2010 solutions to VS2012.
    We have followed all the below steps to test the same functionality.
    1.Install Visual Studio 2012 and reopen solution in VS 2012
    2.Change .NET Framework version to  v4.5
    3.Update existing reference of Microsoft.SharePoint.dll to "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI". (may need to other dlls reference as well)
    4.Add a property ‘SharePointVersion =”15.0"’ in <Solution> element in the manifest file. (otherwise it gets installed into SharePoint 14 location)
    5.Update "_layouts" folder with "_layouts/15" reference.
    6.Update "CONTROLTEMPLATES" with "CONTROLTEMPLATES/15"
    6.Build your solution, deploy and Test.
    After successful deployment we are not able to add the web part to the page.We are getting an error like the following.
    The file '/_controltemplates/15/{Project folder}/{web part Folder}/{Web PartUserControl}' does not exist.
    Any one can help me on this issue.
    Thanks in advance
    Regards,
    Anil

    Hi Everyone.
    We are planning to migrate from share point 2010 to SharePoint 2013.So we have created one POC environment to test the customizations(master pages,Page layouts,web parts,site definition,Site templates) in SharePoint 2013.We have installed Visual Studio 2012
    to convert VS2010 solution.We have done with the converstion from VS2010 solutions to VS2012.
    We have followed all the below steps to test the same functionality.
    1.Install Visual Studio 2012 and reopen solution in VS 2012
    2.Change .NET Framework version to  v4.5
    3.Update existing reference of Microsoft.SharePoint.dll to "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI". (may need to other dlls reference as well)
    4.Add a property ‘SharePointVersion =”15.0"’ in <Solution> element in the manifest file. (otherwise it gets installed into SharePoint 14 location)
    5.Update "_layouts" folder with "_layouts/15" reference.
    6.Update "CONTROLTEMPLATES" with "CONTROLTEMPLATES/15"
    6.Build your solution, deploy and Test.
    After successful deployment we are not able to add the web part to the page.We are getting an error like the following.
    The file '/_controltemplates/15/{Project folder}/{web part Folder}/{Web PartUserControl}' does not exist.
    Any one can help me on this issue.
    Thanks in advance
    Regards,
    Anil

Maybe you are looking for

  • My iMac is really slow and I need advice based on EtreCheck report. Please help?

    Problem description: Have recently found endless errors, crashes and general slowdown on my recently bought iMac Late 2013. I upgraded to Yosemite which seems to kick this off so took it to a local shop to have Mavericks re-installed as Time Machine

  • Third Party Battery Chargers for MacBook Pro

    I had a very interesting experience last week. I bought 2 85W power adapters for my MacBook Pro. There is no "name brand" for it. They were about $47.50 each. The price was effective in getting me to buy 2 as it was a 33% savings over the purchase of

  • Vendor - po control

    Hi, I would like to control the number of PO's to be placed against vendor.   Is there any field available in vendor master to enter number of PO's. Warm regards Munna

  • Regarding down payment AZWR

    when i can ssigned AZWR condition type to pricing procedure, but in sales order how down payment amount will  trigger in sales order so please help me

  • ICI : Context transfer

    Hi all, Is context transfer during a call standard customizing or does it require any development/coding? If it is standard custo, where is it defined in GUI? Thanks, Eli