|
|
While this doesn't specifically operate from the command line, I found this procedure to compress a file or folder in the Windows Help system.
***
To compress a file or folder on an NTFS drive
Open My Computer.
Double-click a drive or folder.
Right-click the file or folder you want to compress, and then click Properties.
On the General tab, click Advanced.
Select the Compress contents to save disk space check box, and then click OK.
In the Properties dialog box, click OK.
In Confirm Attribute Changes, select the option you want.
Notes
To open My Computer, click Start, and then click My Computer.
You can only use NTFS compression for files and folders on drives formatted as NTFS. If the Advanced button does not appear, the file or folder you selected is not on an NTFS drive.
If you move or copy a file into a compressed folder, it is compressed automatically. If you move a file from a different NTFS drive into a compressed folder, it is also compressed. However, if you move a file from the same NTFS drive into a compressed folder, the file retains its original state, either compressed or uncompressed.
Files and folders that are compressed using NTFS compression cannot be encrypted.
You can choose to display NTFS-compressed files in a different color.
***
If I was doing this, I'd compress a large folder with the Task Manager open, and see what program suddenly appears in the list of running tasks, then I'd locate that program and try typing path\programname /? at a command prompt to see what command line parameters it has, if any. Most functions are implemented as stand alone programs somewhere in the Windows system, but they're often undocumented. Once you know the name of the program, you might also find additional information on using it by searching the web, or TechNet.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
Try the command compact /?
|
|
|
|
|
Dear all,
I wana get the HP Pavilion DV 6663, but the operating system is Vista buissness. while my quest is to get it with XP Pro. SP2, wat i will do is to get rid of the vista and install the XP.
My question is: Is the DV 6663 support the XP Pro., concerning drivers?
Best regards.
|
|
|
|
|
Yes[^] for HP Pavilion dv6663ca Notebook PC.
|
|
|
|
|
Device a simple shell with the following valid commands:
1. help
a. lists the names of currently available commands
2. add
a. takes 2 command line arguments corresponding to the two input values
3. subtract
a. takes 2 command line arguments corresponding to the two input values
4. multiply
a. takes 2 command line arguments corresponding to the two input values
b. overflows will be truncated
5. divide
a. takes 2 command line arguments corresponding to the two input values
b. this performs only integer division
c. division attempt by zero returns zero.
6. setlog
a. takes one argument indicating the name of the log file [default: q1.log]
7. start
a. starts the logging process to the logfile mentioned above
8. stop
a. stops logging process
9. quit
a. exits out of shell
10. back
a. Usage: back
b. Executes the cmd in back ground and holds the child from exiting till explicitly
mentioned by fetch command
c. Internally, back returns the child id of the process created .
11. fetch
a. Usage: fetch
b. childid is the id of the process to be fetched. This will print the result of the
operation performed by child
c. if no childid is given, any of the background children will be fetched.
12. ps
a. list the set of child processes with their process id and the name of the child.
Apart from these set commands, if any other command is typed, then a “Command not found”
error should be printed by your program on to the screen.
All the results from the child processes has to be send to shell process using shared memory
defined on a per-child basis.
If a process has been send to background using the back command, then it must stop itself from
sending the result back to shell. Only when the user types the fetch command, the child must
return the result to the shell.
Every 30 secs, the shell must display the currently running child processes on to the screen. (This
information should not be printed to the log file.)
From the time the start command is given, all the commands typed in the shell, and its results
must be written on to the log files, unless otherwise specified. Commands 1,6,7,8,9 and 12
should not be written to the log file, neither should their results be written.
|
|
|
|
|
Hi,
We are trying to transmit video within intranet.
Setup:
Windows XP PC having the WME and the Webcam.
Windows 2003 Enterprise Edition Server with WMS.
We performed configuration as mentioned in couple of websites pertaining to Multicast steaming.
On WMS we configured the Publishing point which points to the XP PC which is used to capture the live video and audio. (http://internalIpAddress:8080/publishingpointname). After the creation we started the publishing point service.
Next we started the encoding using the WME wizard. There we selected the Multicast streaming option using PUSH. Provided the link to the WMS server (http://InternalWMServerIp:8080).
But we end up getting the following error: "The specified push template is invalid.(0xC00D151A)"
Since we are setting this up in intranet, we believe that firewall/router will not come in for consideration. Is our assumption correct?
For the above two configuration/setup, will the internal IP address do good or do we need to have the 239.XXX.XXX.XXX series.
We tried with PULL and Unicast. This works fine, since the PC transmitting the video will not use the WMS for transmission.
Can someone help us on step-by-step guide to achieve the same with example and the fix for the error being encountered. Couple of important troubleshooting tips will also be of great help.
TIA
|
|
|
|
|
Hi,
Do you know locking/unlocking capability of your hard disk? If not, read following.
Every hard disk has inbuilt controller, called ATA controller. ATA stands for Advanced Technology Attachment or AT Attachement. ATA is the standard protocol to interact with the hard disk. ATA protocol has several commands using which hard disk can be locked or unlocked.
This lock is the hardware lock. Once hard disk is locked, you can't read/write from your hard disk, until unlocked. Once it is locked, all commands to hard disk will be aborted, except commands for unlocking and some special commands.
Almost all modern hard disk support security feature. By default security feature is disabled. It needs to be enabled and then only hard disk can be locked/unlocked. Some older hard disk might not support this feature.
I have created a utility, completely coded 'C' language, to lock/unlock hard disk.
For more details and downloading this utility, visit Lock-Unlock Hard Disk[^]
Thanks,
Sandeep B. Vaniya
|
|
|
|
|
Hi.
I'm new to WMI, nd I'm trying to create an application that pings a computer and get the following information:
- IP adress
- Domain
- UserName
- Time since last boot
- Memory
- CPU
- OS Version
- Service pack version
- Current pingtime (datetime.now).
I'm using both the registry and WMI to get the needed information, but I would like to know if anyone could help me writing - or guide me to create a WMI call that would get all that information?
I'm selecting the host from a database, and the data is afterword stored in the same table.
Also, if I could get some help reading an OU in a Domain to list all hosts - I know the path to the ou, but not how to read data fromm it.
Regards Jan.
|
|
|
|
|
|
GET OS INFORMATION
you have to use ManagementClass to access system details
<br />
System.Management.ManagementClass managementClass = new System.Management.ManagementClass("Win32_OperatingSystem");<br />
<br />
foreach (System.Management.ManagementObject managementObject in managementClass.GetInstances())<br />
{<br />
<br />
str1 = managementObject["Manufacturer"].ToString();<br />
str2 = managementObject["Version"].ToString();<br />
str3 = managementObject["Caption"].ToString();<br />
<br />
}<br />
|
|
|
|
|
Jan,
I think this will help out a lot. It helped me, because sometimes WMI can be a nightmare...
WMI Code Creator v1.0[^]
-David
|
|
|
|
|
Is it possible to change size a partition on the windows with its tools without any external tools?
|
|
|
|
|
Not in any of the current versions. Microsoft claims that it will be possible in the next version of windows.
|
|
|
|
|
Just like Jörgen said: No.
However, if the partition is not the system partition, you can always copy that drives content to, let's say, "c:\_drive_d_backup_" and then delete and recreate the partition in question in safe mode.
If it IS the system partition (or any system partition), you're out of luck.
If you were just looking for a "free repartitioner": I have successfully resized partitions on notebooks and desktops with Knoppix 5.1.1. However, there is no guarantee that this will work or that your data will remain intact (no manufacturer is making that claim anyway, so...).
What you need to do for all partitions on the affected disk:
Backup all data.
Disable Hibernating and delete the hibernation file. (Optional, can make defragmenting easier)
Disable Disk Swapping (Virtual Memory) and delete the pagefile. (Optional, if you have enough RAM, can make defragmenting easier).
[Modification]:
Disable System Restore Points, empty and deleteRecycle Bin.
Defragment your partition(s) (this is especially important if you're planning to downsize. I suggest using O&O Defrag. There is a free evaluation version).
Run a disk checker to make sure your partition is in a consistent state.
Now, I suggested defragmenting and checking all partitions on the disk the partition to be resized is stored on. Why? Because, if the partitioning software messes up, you have a good shot at restoring/recreating the previous partition table using testdisk or another disaster recovery tool. And since the data is unfragmented, the file system might also be salvagable. So, if you have not done this for all partitions, reconsider your decision.
Shutdown Windows. If there are any error messages, slowdowns or anything that indicates problems during shutdown, restart into Windows (Safe Mode - press F8 on the POST-screen to reach the menu) and shut it down again. Repeat until you've had a clean shutdown.
Insert your Knoppix-CD/DVD and boot it up. Try different cheatcodes until you reach the Desktop. Find the System-Menu. Select the entry labeled "QtParted".
Use QtParted to resize one partition. Execute (save) the changes. If the resize finishes momentarily, and you did not see a visibly incrementing progress bar labeled "ntfs-resize", you either did not resize an NTFS-partition or QtParted messed up (as it sometimes does). In the latter case, reboot into Windows, shut it down again (as before) and boot into Knoppix again. Increase the partition size a little bit (if you downsized) or decrease it (if you upsized), and try again.
If the second try fails as well, do disaster recovery, because QtParted was unable to resize your partition. You may have lost data.
If the first or second try succeeds, congratulations. Start Windows at least once to keep it "up to date" and proceed with the next partition.
Of course, theoretically, you can resize all partitions at once. However, that seems to increase the chance of QtParted barfing over your partition table.
Cheers,
Sebastian
--
"If it was two men, the non-driver would have challenged the driver to simply crash through the gates. The macho image thing, you know." - Marc Clifton
modified on Monday, April 21, 2008 10:16 AM
|
|
|
|
|
How about the extend command? Try to read this article[^] in the section of extend volume, is it surf your need or not. Thank
|
|
|
|
|
Hello Friends,
I have one question
How can we determing the File is open or close without opening the file.
Thanks in advance to all of you.
ritz1234
|
|
|
|
|
Hi,
you could enumerate all processes, and for each process enumerate all handles, and for
each handle check whether it refers to the file you are interested in.
Sounds to me just a simple try-open-close is much simpler!
I have a feeling this is not your real question, my guess is you have some problem
and are attempting to find a solution without explaining the actual problem ...
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
I have a .APS website that currently communicates with an Oracle DB running on a Sun Solaris database server. Currently, we connect directly to the server for each database request over the internet. Can I use either a .ASP web service or WCF to communicate with that Sun server? Examples are welcome.
Thanks,
Steve
|
|
|
|
|
Is there anything that tells the administrator in Windows Server 2003 what files the users has open or been viewing?
|
|
|
|
|
You can only see what files a user HAS open, not what they HAD open.
On the server, right-click MyComputer, then, in the left-side pane, open System Tools, then Shared Folders, then click on Open Files.
|
|
|
|
|
Hi everyone
I'm wondering what the syntax is for ending a script aft X seconds.
the reason being is one of our clients has a script that was written to do a system inventory but that script is causing log on times of 45 minutes at times. If I remove the script logon times are normal.
the script is as follows
start \\servername\ishareddiectory\inventoryapp.exe
so it is nothing fancy
I want to somehow say IF time running >= 30seconds Then Quit but I'm' not sure of what the syntax is and my knowledge of scripting is very limited
|
|
|
|
|
There is nothing built into the system that will do this.
Either that utility has to offer that functionality or you have to come up with an external utility that will watch for that .EXE and, if running for more than X seconds, terminate it. But, that could also lead to resource leaks and hung connections on servers.
|
|
|
|
|
I assume you are using a good old fashioned netlogon script or are using w2k computers.
Run the script as a group policy logon script instead. on Xp computers the script will run asyncronously and therefore it will not disturb so much.
If you are already using GPO script but you are having w2k computers, then the scripts are run syncronously. You may then want to set the timeout for the script at "Administrative templates/system/Scripts/Maximum wait time for Group Policy Scripts"
|
|
|
|
|
Can you do it via a Scheduled Task? It has the option for stopping the task after it has ran for X minutes/hours.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|