Community discussions

 
David1234
Forum Guru
Forum Guru
Topic Author
Posts: 1251
Joined: Sun Sep 18, 2011 7:00 pm

can i print the name of the file I'm importing?

Wed Dec 28, 2016 11:52 am

Hello ,
let say I have a file called changes.rsc
what do I need to do in the script itself to make it print in the logs that I run this script ?

is it even possiable?

Thanks ,
 
Dude2048
Frequent Visitor
Frequent Visitor
Posts: 52
Joined: Thu Sep 01, 2016 4:04 pm

Re: can i print the name of the file I'm importing?

Wed Dec 28, 2016 12:15 pm

:log info "Whatever you want"
 
David1234
Forum Guru
Forum Guru
Topic Author
Posts: 1251
Joined: Sun Sep 18, 2011 7:00 pm

Re: can i print the name of the file I'm importing?

Wed Dec 28, 2016 12:30 pm

really?????
why didn't I think about it :? :?

I want it to take the name of the file and print it without me writing it

so if the file name is "changes1.rsc"
when I run
/import file name=changes1.rsc
he will print me changes1.rsc

and if i will change the name to changes2
I don't have to do nothing in the file itself ...

Who is online

Users browsing this forum: No registered users and 37 guests