create folder in windows from unix while FTP


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers create folder in windows from unix while FTP
# 1  
Old 05-14-2008
create folder in windows from unix while FTP

Hi,

I would like to know if it's possible to create a folder in a Windows Server while running a ftp script in Unix.

The idea is to create a script that searches for different files in folders, and when the file is found, take the path of that file and create it to Windows and ftp the file to that path.

Also if anyone can help me by providing code on how to build that script i would appreciate it very much.

Thanks
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to create user with access only to one folder through ftp?

Hi all, Can someone help me with creating user with special privilegies? I need to create user who will have access ONLY to one folder (like /etc/log/) through ftp (read only access) and which will not have any other ways to log in like telnet, ssh etc.? (5 Replies)
Discussion started by: nypreH
5 Replies

2. Shell Programming and Scripting

FTP from Unix Shell script to Windows Shared folder ?

Hi Before Posting my query in this forum, I have gone through various similar postings to get some idea on ftp and how to do that from unix shell script to windows server. My question is related to FTP'ing from Unix to windows shared folder My basic question is 1. Is it possible to do FTP... (4 Replies)
Discussion started by: shekharjchandra
4 Replies

3. Shell Programming and Scripting

how to create folder and sub-folder in UNIX ?

Hi all, I have the following code to check the whether the folder is exist in my system. if ; then echo 'folder exist'; else echo 'folder not exist'; mkdir /home/batch/testing ; fi When I remove the "testing" folder from "/home/batch" directory, the code is working fine. But when I... (2 Replies)
Discussion started by: suigion
2 Replies

4. Windows & DOS: Issues & Discussions

How can I upload a zip folder on a unix path from my windows folder?

Hello, I am an amature at UNIX commands and functionality. Please could you all assist me by replying to my below mentioned querry : How can I upload a zip folder on a unix path from my windows folder? Thanks guys Cheers (2 Replies)
Discussion started by: ajit.yadav83
2 Replies

5. Shell Programming and Scripting

How do I access the create date from Windows after the file has been FTP'd to UNIX ?

I run an application that creates a hostname_log.txt file on the c:\ of each windows workstation. At the end of each day, these log files are FTP'd to a directory on a UNIX box. When I run "ls -lrt", the timestamp that is displayed is the timestamp that the FTP occured, not the timestamp... (2 Replies)
Discussion started by: gavman99
2 Replies

6. UNIX for Advanced & Expert Users

How to create a Tar of multiple Files in Unix and FTP the tar to Windows.

Hi, On my Unix Server in my directory, I have 70 files distributed in the following directories (which have several other files too). These files include C Source Files, Shell Script Source Files, Binary Files, Object Files. a) /usr/users/oracle/bin b) /usr/users/oracle... (1 Reply)
Discussion started by: marconi
1 Replies

7. Shell Programming and Scripting

FTP command to search recursively in windows folder

Hi what command to be used to FTP files from the windows directory into a folder in unix environment using shell script The script should be able to recursively search into 100 subdirectories within my windows directory for .xml files. Can anyone help me with this... thnx (6 Replies)
Discussion started by: lakshmis10
6 Replies

8. UNIX for Dummies Questions & Answers

folder replication between windows and unix

1. How do i replicate folders between windows and unix. if i create a subfolder under NDC in windows, it should automatically create a subfolder in unix as well. windows nt /NDC/SUBFOLDERS hp ux /NDC/SUBFOLDERS 2. How do i ftp a file from windows to unix using automated... (0 Replies)
Discussion started by: systemsb
0 Replies

9. UNIX for Dummies Questions & Answers

How can I view a Windows 2003 folder in Unix?

Is it possible to do something like this? Have a folder shared on a Windows machine and then be able to view it under a Unix server? Sort of like a reverse Samaba share? (5 Replies)
Discussion started by: LordJezo
5 Replies

10. UNIX for Dummies Questions & Answers

How can i get my windows 98 folder from unix?

Haya mates, I have 2 seperate physical drives ie c:\ with windows 98 and D:\ with Linux mandrake installed. I need to have access to certain directories in my windows d drive how can i manage that? best regards abdul ::email removed:: (2 Replies)
Discussion started by: abdul
2 Replies
Login or Register to Ask a Question
The folder management API.(3)					      libmtp					     The folder management API.(3)

NAME
libmtp - The folder management API. Functions LIBMTP_folder_t * LIBMTP_new_folder_t (void) void LIBMTP_destroy_folder_t (LIBMTP_folder_t *) LIBMTP_folder_t * LIBMTP_Get_Folder_List (LIBMTP_mtpdevice_t *) LIBMTP_folder_t * LIBMTP_Get_Folder_List_For_Storage (LIBMTP_mtpdevice_t *, uint32_t const) LIBMTP_folder_t * LIBMTP_Find_Folder (LIBMTP_folder_t *, uint32_t const) uint32_t LIBMTP_Create_Folder (LIBMTP_mtpdevice_t *, char *, uint32_t, uint32_t) int LIBMTP_Set_Folder_Name (LIBMTP_mtpdevice_t *, LIBMTP_folder_t *, const char *) Detailed Description Function Documentation uint32_t LIBMTP_Create_Folder (LIBMTP_mtpdevice_t *device, char *name, uint32_tparent_id, uint32_tstorage_id) This create a folder on the current MTP device. The PTP name for a folder is 'association'. The PTP/MTP devices does not have an internal 'folder' concept really, it contains a flat list of all files and some file are 'associations' that other files and folders may refer to as its 'parent'. Parameters: device a pointer to the device to create the folder on. name the name of the new folder. Note this can be modified if the device does not support all the characters in the name. parent_id id of parent folder to add the new folder to, or 0 to put it in the root directory. storage_id id of the storage to add this new folder to. notice that you cannot mismatch storage id and parent id: they must both be on the same storage! Pass in 0 if you want to create this folder on the default storage. Returns: id to new folder or 0 if an error occured References DEVICE_FLAG_BROKEN_SEND_OBJECT_PROPLIST, LIBMTP_mtpdevice_struct::params, strip_7bit_from_utf8(), and LIBMTP_mtpdevice_struct::usbinfo. void LIBMTP_destroy_folder_t (LIBMTP_folder_t *folder) This recursively deletes the memory for a folder structure. This shall typically be called on a top-level folder list to detsroy the entire folder tree. Parameters: folder folder structure to destroy See Also: LIBMTP_new_folder_t() References LIBMTP_folder_struct::child, LIBMTP_destroy_folder_t(), LIBMTP_folder_struct::name, and LIBMTP_folder_struct::sibling. Referenced by LIBMTP_destroy_folder_t(), and LIBMTP_Get_Folder_List_For_Storage(). LIBMTP_folder_t* LIBMTP_Find_Folder (LIBMTP_folder_t *folderlist, uint32_tid) Helper function. Returns a folder structure for a specified id. Parameters: folderlist list of folders to search id of folder to look for Returns: a folder or NULL if not found References LIBMTP_folder_struct::child, LIBMTP_folder_struct::folder_id, LIBMTP_Find_Folder(), and LIBMTP_folder_struct::sibling. Referenced by LIBMTP_Find_Folder(). LIBMTP_folder_t* LIBMTP_Get_Folder_List (LIBMTP_mtpdevice_t *device) This returns a list of all folders available on the current MTP device. Parameters: device a pointer to the device to get the folder listing for. Returns: a list of folders References LIBMTP_Get_Folder_List_For_Storage(). LIBMTP_folder_t* LIBMTP_Get_Folder_List_For_Storage (LIBMTP_mtpdevice_t *device, uint32_t conststorage) This returns a list of all folders available on the current MTP device. Parameters: device a pointer to the device to get the folder listing for. storage a storage ID to get the folder list from Returns: a list of folders References LIBMTP_folder_struct::child, LIBMTP_folder_struct::folder_id, LIBMTP_destroy_folder_t(), LIBMTP_new_folder_t(), LIBMTP_folder_struct::name, LIBMTP_mtpdevice_struct::params, LIBMTP_folder_struct::parent_id, LIBMTP_folder_struct::sibling, and LIBMTP_folder_struct::storage_id. Referenced by LIBMTP_Get_Folder_List(). LIBMTP_folder_t* LIBMTP_new_folder_t (void) This creates a new folder structure and allocates memory for it. Notice that if you add strings to this structure they will be freed by the corresponding LIBMTP_folder_track_t operation later, so be careful of using strdup() when assigning strings, e.g.: Returns: a pointer to the newly allocated folder structure. See Also: LIBMTP_destroy_folder_t() References LIBMTP_folder_struct::folder_id. Referenced by LIBMTP_Get_Folder_List_For_Storage(). int LIBMTP_Set_Folder_Name (LIBMTP_mtpdevice_t *device, LIBMTP_folder_t *folder, const char *newname) This function renames a single folder. This simply means that the PTP_OPC_ObjectFileName property is updated, if this is supported by the device. Parameters: device a pointer to the device that contains the file. folder the folder metadata of the folder to rename. On success, the name member is updated. Be aware, that this name can be different than newname depending of device restrictions. newname the new name for this object. Returns: 0 on success, any other value means failure. References LIBMTP_folder_struct::folder_id, and LIBMTP_folder_struct::name. Author Generated automatically by Doxygen for libmtp from the source code. Version 1.1.3 Sun Feb 17 2013 The folder management API.(3)