How to rename a file (change extension?)

  • Автор темы Автор темы helpot80
  • Дата начала Дата начала

helpot80

Client
Регистрация
28.05.2011
Сообщения
48
Реакции
0
Баллы
6
How to rename a file (change extension?) Any idea?
 
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";-}
 
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.
 
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";-}
 
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.
 
Ok attached it.
 

Вложения

  • temp.xml
    temp.xml
    2,4 KB · Просмотры: 609
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

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