Get txt file size [closed] - vbscript

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am using standalone .vbs file to verify files whether each file exists or not.I also wants to check Wether the file size is exact?
Is it possible to do it with vbscript?
Thanks in advance

Use the .Size property of the File object:
>> WScript.Echo goFS.GetFile("c:\boot.ini").Size
>>
211
>>

Related

I need some ideas fo writing a self-destroying program [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 days ago.
Improve this question
it should be compiled and started only x times and then not anymore, should also be not hackable. for example no use of lock file.
maybe a use-counter in the binary?
im expecting suggestions to my problem here.
For this must use destructur.
Destroyed variables after scope and must nul

How do I extract particular name from a file name in shell [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 months ago.
Improve this question
In shell scripting Suppose I have a file name called aaa_djdidm_cjcjcj_20220602.txt
I only want the name except the date.
Expected result - aaa_djdidm_cjcjcj
If you want to remove the part after the last _:
NAME="aaa_djdidm_cjcjcj_20220602.txt"
NEW_NAME=${NAME%_*}
The % operator is useful do remove the motif (here _*) of a named parameter (here NAME)

Gantry and less variables how to bridge the gap? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Is there a way to update a variables.less file with variables from the user selection area in the backend? such as template-options.xml
or can it only be made inline through a styledeclaration.php?
You should read http://gantry-framework.org/documentation/joomla/advanced/less_css.md
You should write a PHP that reads your template-options.xml and create a /less/[LESS_FILE_NAME]-custom.less file with your variables, or pass your variables as an array into the $gantry->addLess() function.

What are the advantages/disadvantages of using "SHC" to convert script to binary file [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
What are the advantages / disadvantages of converting a shell script into a binary file?
I have done that and when I run the binary file on another linux it doesn't run.
it gives this error
version 'GLIBC_2.14' not found (required by ./test.sh.x)
on another server it gives this ./test.sh.x: Invalid argument.
The script only does a echo "hello"
The only 'advantage' is obfuscation, the disadvantages numerous as the examples in your question show.
If you're using it to hide secrets (passwords) they are easy to extract anyway.

Return Value of File Based Write Filter via Batchfile [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
i try to get a return value of the fbwfmgr.exe inside a batchfile.
I have already read many articles about programming with it's API,
but i need the batchfile.
Thanks for help!
try this:
start "" "fbwfmgr.exe" [some options]
if %errorlevel% neq 0 echo FAIL!

Resources