Create Directory and Save File in it

convict29

Пользователь
Регистрация
10.07.2014
Сообщения
114
Благодарностей
3
Баллы
18
Hey,
i want ZP to create a Directory and then Create a new file.xlxs and save it in the directory it created.

How can i do that?

*The directory name will be set from the Input Settings at the begine (i know how to do that)
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Try something like this

Код:
Directory.CreateDirectory(project.Variables["Directorypath_variable_name"].Value);
string File1 = project.Variables["Directorypath_variable_name"].Value+@"\Filename.xls";
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)