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 4 years ago.
Improve this question
Is it possible, in a Windows batch file, to test if a certain drive letter was mounted by TrueCrypt?
I think this is not possible. You could get much information with wmic logicaldisk but nothing will indicate that Truecrypt assigned the drive letter.
As an Idea: (for anyone still finding this post)
You could make this C# Script over at the post #18021118 (which accesses truecrypt to retrive mount information) (there is also a VeraCrypt version over there.) ...
into a commandline tool to be used from your windows batch (added a simple example here: http://github.com/BananaAcid/VeraCrypt-Cmd - replace the get mounts file with the one from the readme within)
or use it directly with powershell
or with an additional binary wich executes scripts on the windows NET Framework without compiling: cs-script.
Related
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 4 years ago.
Improve this question
I'm trying to create an .exe file that shuts down a remote computer using VB.NET.
I can achieve this using the shutdown command from a .bat file but my goal is to achieve this using an .exe file which takes a computer name and reboots it.
Is this possible?
If so, how should I do it?
I assume that you have a program asking for a IP in a textbox.
So, the easiest way to do this is to run this code after the user finishes typing the IP:
Process.Start("shutdown.exe -s -t 0 -m " & TextBox1.Text)
Now, this is the most simplistic way of doing so and I haven't tried out this code, so I can't guarantee you that it works. I'd also recommend you to add validation to check if the user input is a IP.
I hope this helped you. -Luca
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 years ago.
Improve this question
I want to write a program that detects address of files that were copied to a USB drive? I want to Every time files were copied to a USB,address of files show in console .How can i do that?
It would depend on the language you chose to use for the job, but regardless you would want to use a library that watches the filesystem for changes and runs a method when a new file is added. If you provide more information about what you want, we can probably give you a more precise answer.
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
I am creating a script that gathers the pc specs(windows) and mails em to the tech support.
currently I am stuck on finding the RAM type.
systeminfo only shows me the ammount available.
i have been able to find a lot of info using wmic memorychip get xxxx,xx but I can't seem to find what type of RAM is being used
cpu-z shows me it is DDR3 but how did cpu-z get that information?
I am making this script in perl so perhaps perl has a module that I'm not aware of which lets me do this?
any help would be greatly appreciated.
If you're packaging a perl interpreter for distribution with this script, why don't you include a cpu-z binary in the package, have your script run it with output to a file arguments set, then parse that output for the information you need? Or just email that file as an attachment on top of the other information you include?
Ref: http://www.cpuid.com/softwares/cpu-z.html
-txt=report Launch CPU-Z in ghost mode : no interface appears, the register dump (report.txt) is automatically created.
Example: cpuz.exe -txt=c:\mydirectory\mysystem: runs CPU-Z in ghost
mode. Report file mysystem.txt is automatically generated in directory
c:\mydirectory.
Never tested this because I dont have a windows machine, but try
use Win32::SystemInfo;
use Data::Dumper;
my %mem;
Win32::SystemInfo::MemoryStatus(%mem, 'GB');
print Dumper %mem;
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I want to execute c++ binary in terminal without inputting "./a.out", just typing "a.out"
In my school's PC(solaris10), I can just type a.out and the program executed. However, on my PC's solaris11 doesn't accept just "a.out".
I believe there is a way to make it possible. If you know, please tell me.
If possible, I want to know the instruction fo solaris, Ubuntu and macOS X, because I usually use Ubuntu and mac.
Thanks in advance!!
It sounds, like the PATH variable has been set to include the home directory at your schools PC. You see, each time you enter a command without a path, it searches your entire PATH (which can consist of multiple paths) for something that matches the filename you supplied and executes the first thing it finds.
Check this link for some instructions: http://www.troubleshooters.com/linux/prepostpath.htm
Either you do a temporary fix, with
PATH=$PATH:/data/myscripts
or you edit the hidden file .bash_profile in your home directory for a more permanent fix.
I hope this helps.
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 5 years ago.
Improve this question
I am working on a project that uses a filesystem and I'm having some problems integrating with Windows.
I need help understanding how the Windows file system works.
Which Windows? The file system used by DOS and Windows up to Win98 (if I am not mistaken) is FAT. It is still widely used e.g. by memory cards, digital cameras etc. Windows NT and later Windows versions however use NTFS.
You may start reading about FAT and NTFS on Wikipedia.
You probably mean NTFS. Then the best reference is http://www.ntfs.com/
A friend of mine started implementing a defragmenter based on that information and it appears to work properly. That means the info from that site seems reliable.