How to rename a file (change extension?)

helpot80

Client
Регистрация
28.05.2011
Сообщения
48
Благодарностей
0
Баллы
6
How to rename a file (change extension?) Any idea?
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113
As I already said in Skype there is object ActiveXObject in JavaScript. This is an example
{-JS.Execute-|-var fso, f; fso = new ActiveXObject("Scripting.FileSystemObject"); f = fso.GetFile("e:\\test.txt"); f.name = "test.extension";-}
 

helpot80

Client
Регистрация
28.05.2011
Сообщения
48
Благодарностей
0
Баллы
6
Yeah you told me before you went.

It doesnt work. I keep getting

"Exception has been thrown by the target of an invocation"

Help me to get it working, I havent been able to use the ZP pro yet.
 

helpot80

Client
Регистрация
28.05.2011
Сообщения
48
Благодарностей
0
Баллы
6
i think it doesnt work because it is trying to execute:

{-JS.Execute-|-var fso, f; fso = new ActiveXObject("Scripting.FileSystemObject"); f = fso.GetFile("e:\\{Filed---Data}test.txt"); f.name = "test.extension";-}

instead of

{-JS.Execute-|-var fso, f; fso = new ActiveXObject("Scripting.FileSystemObject"); f = fso.GetFile("e:\\actual-name-randomly-made\\test.txt"); f.name = "test.extension";-}
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113
Don't use invisible mode, just went off:-)
Works fine on my pc. Check path to the file.
Upload nonworking template to this thread if still isn't working.
 

helpot80

Client
Регистрация
28.05.2011
Сообщения
48
Благодарностей
0
Баллы
6
Ok attached it.
 

Вложения

  • 2,4 КБ Просмотры: 509

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113
Probably you missed backslash
"C:\\Users\\yopc\\Desktop\\captcha\\decap\{-FieldData.FieldData-|-●5●7●5●4●8●9●-|-≡3≡7≡5≡5≡2≡4≡8≡1≡3≡-}\\text.txt"
"C:\\Users\\yopc\\Desktop\\captcha\\decap\\{-FieldData.FieldData-|-●5●7●5●4●8●9●-|-≡3≡7≡5≡5≡2≡4≡8≡1≡3≡-}\\text.txt"
 
  • Спасибо
Реакции: sternburg

helpot80

Client
Регистрация
28.05.2011
Сообщения
48
Благодарностей
0
Баллы
6
Thanks it worked
 

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