c# loading cookie from project directory and variables Question

nova

Client
Регистрация
09.10.2011
Сообщения
88
Благодарностей
7
Баллы
8
I am using c# code in zennoposter to load cookies. I have this right now

instance.LoadCookie("C:\\cookie.txt");

but I want to be able to load the cookie from the project directory and be able to load the cookie from the variable "emailUserName"

like this:

{-Project.Directory-}\Data\Cookies\{-Variable.emailUserName-}.txt

any idea on how i can do that using c# code and load the cookie?

Thanks
 

nova

Client
Регистрация
09.10.2011
Сообщения
88
Благодарностей
7
Баллы
8
Sorry never mind. I seen that someone just asked a similar question couple days ago.
The code that worked for me was:


Код:
string path = project.Directory + @"\Data\Cookies\" + project.Variables["emailUserName"].Value + ".txt";
instance.LoadCookie(path);
Thanks
 
  • Спасибо
Реакции: sheiku и myndeswx

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