N nova Client Регистрация 09.10.2011 Сообщения 88 Благодарностей 7 Баллы 8 17.10.2018 #1 How to check if a folder exists? Thanks
N nova Client Регистрация 09.10.2011 Сообщения 88 Благодарностей 7 Баллы 8 17.10.2018 #2 I only see option for checking if file exists but not checking if folder exists. would i need to figure out how to do it with c# ?
I only see option for checking if file exists but not checking if folder exists. would i need to figure out how to do it with c# ?
VladZen Administrator Команда форума Регистрация 05.11.2014 Сообщения 22 453 Благодарностей 5 913 Баллы 113 17.10.2018 #3 https://docs.microsoft.com/en-us/dotnet/api/system.io.directory.exists?view=netframework-4.7.2 Реакции: lokiys
lokiys Moderator Регистрация 01.02.2012 Сообщения 4 812 Благодарностей 1 187 Баллы 113 17.10.2018 #4 Hi. Take this: C#: if(Directory.Exists(project.Variables["dirPath"].Value)) throw new Exception("Directory exist"); Create variable dirPath. If directory will exist it will go out to bad exit.
Hi. Take this: C#: if(Directory.Exists(project.Variables["dirPath"].Value)) throw new Exception("Directory exist"); Create variable dirPath. If directory will exist it will go out to bad exit.
N nova Client Регистрация 09.10.2011 Сообщения 88 Благодарностей 7 Баллы 8 17.10.2018 #5 how do i use it. im having trouble. im not good with c# lokiys сказал(а): Hi. Take this: C#: if(Directory.Exists(project.Variables["dirPath"].Value)) throw new Exception("Directory exist"); Create variable dirPath. If directory will exist it will go out to bad exit. Нажмите, чтобы раскрыть...
how do i use it. im having trouble. im not good with c# lokiys сказал(а): Hi. Take this: C#: if(Directory.Exists(project.Variables["dirPath"].Value)) throw new Exception("Directory exist"); Create variable dirPath. If directory will exist it will go out to bad exit. Нажмите, чтобы раскрыть...
lokiys Moderator Регистрация 01.02.2012 Сообщения 4 812 Благодарностей 1 187 Баллы 113 17.10.2018 #6 nova сказал(а): how do i use it. im having trouble. im not good with c# Нажмите, чтобы раскрыть... Please check https://zennolab.com/wiki/en:progs_run?s[]=own&s[]=code C# code
nova сказал(а): how do i use it. im having trouble. im not good with c# Нажмите, чтобы раскрыть... Please check https://zennolab.com/wiki/en:progs_run?s[]=own&s[]=code C# code
N nova Client Регистрация 09.10.2011 Сообщения 88 Благодарностей 7 Баллы 8 17.10.2018 #7 lokiys сказал(а): Please check https://zennolab.com/wiki/en:progs_run?s[]=own&s[]=code C# code Нажмите, чтобы раскрыть... I tried it but it's not working. is it possible you can create the template and send it? I don't know what I am doing wrong. Very sorry about that.
lokiys сказал(а): Please check https://zennolab.com/wiki/en:progs_run?s[]=own&s[]=code C# code Нажмите, чтобы раскрыть... I tried it but it's not working. is it possible you can create the template and send it? I don't know what I am doing wrong. Very sorry about that.
lokiys Moderator Регистрация 01.02.2012 Сообщения 4 812 Благодарностей 1 187 Баллы 113 17.10.2018 #8 nova сказал(а): I tried it but it's not working. is it possible you can create the template and send it? I don't know what I am doing wrong. Very sorry about that. Нажмите, чтобы раскрыть... Вложения this-directory.xmlz 14,2 КБ Просмотры: 143
nova сказал(а): I tried it but it's not working. is it possible you can create the template and send it? I don't know what I am doing wrong. Very sorry about that. Нажмите, чтобы раскрыть...
N nova Client Регистрация 09.10.2011 Сообщения 88 Благодарностей 7 Баллы 8 17.10.2018 #9 thanks so much. I didn't check "Do not return a value" that was my mistake.