SyMenu Forum

SyMenu

 

HomeGeneral discussion & questions

Talk about SyMenu or post suggestions, requests, or how-to questions

[SPS Editor] Rename file after install Messages in this topic - RSS

ronen1n
ronen1n
Posts: 23


2 days ago
ronen1n
ronen1n
Posts: 23
Hi

why this command works with m:

RemFile rustdesk-*x86_64.exe rustdesk-x86_64.exe


Download Size correct (±10Kb)
File exe 'D:\1\Desktop\test\rustdesk_1.4.3\rustdesk-x86_64.exe' correct
VirusTotal reports a detection rate of 0/71

Your SPS file seems to be correct. You can publish it.


And this command with n gives error:
RenFile rustdesk-*x86_64.exe rustdesk-x86_64.exe


Download Size correct (±10Kb)
Error. File exe 'D:\1\Desktop\test\rustdesk_1.4.3\rustdesk-x86_64.exe' doesn't exist
VirusTotal reports a detection rate of 0/71

There are some errors in your SPS file. Read the previous line for the details.


And this ones work fine:
RenFile CyberChef_v10.19.4.html CyberChef.html
RenFile CyberChef_*.html CyberChef.html

RenFile burpsuite_community_?.*.jar burpsuite_community.jar
link
Gianluca
Gianluca
Administrator
Posts: 1350


1 days ago
Gianluca
Gianluca
Administrator
Posts: 1350
The command:
RemFile rustdesk- bla bla bla...
works as these ones:
ZipZapFile bla bla bla...
ReadAloudFile bla bla bla...
VaporizeFile bla bla bla...
or any other one you can think.

Indeed it's not working at all because the SPS scripting engine IGNORES anything it doesn't recognize.
RemFile command is simply not recognized.
It seems it's working because it apparently renames the file from rustdesk-1.4.3-x86_64.exe to rustdesk-x86_64.exe. Indeed the file is renamed directly during the download.
RenFile as a command becomes necessary when you download a package that contains the file to rename, not the file itself.

The thing I can't understand is why you got the error on the right command:
RenFile rustdesk-*x86_64.exe rustdesk-x86_64.exe
In theory the SPS scripting wouldn't throw an error if a renaming doesn't succeed.
In fact I tried to add:
RenFile Bubba.exe Bubba-x86_64.exe
Bubba.exe doesn't exist but the process closed successfully because at the end it finds everything it needs and, who cares if Bubba.exe wasn't there? Maybe it was a remnant from a previous package version.

So the interesting thing about this problem is: are you testing the SPS online or with a locally downloaded rustdesk file? In the second case, what is the exact name of the downloaded file?
link
ronen1n
ronen1n
Posts: 23


1 days ago
ronen1n
ronen1n
Posts: 23
I'm testing using the "Test SPS Online"
I removed the wrong command for "rustdesk-1.4.3-x86_64.exe" and it's working fine and changing the app name automatically to rustdesk-x86_64.exe like you said
link



UGMFree © 2002-2025
PayPal BTC TON